Gentoo Archives: gentoo-sparc

From: "David S. Miller" <davem@××××××.com>
To: weeve@g.o
Cc: gentoo-sparc@l.g.o, fmccor@g.o, squash@g.o
Subject: Re: [gentoo-sparc] 2.6 kernel and docs
Date: Wed, 06 Jul 2005 01:35:54
Message-Id: 20050705.213527.59658187.davem@redhat.com
1 Nevermind, I found the bug. I subtly broke UltraSPARC-III and
2 later chips by accident.
3
4 This patch should fix it:
5
6 [SPARC64]: Fix __cheetah_flush_tlb_pending instruction count.
7
8 The recent membar changes broke the UltraSPARC-III code patching.
9
10 Signed-off-by: David S. Miller <davem@×××××××××.net>
11
12 --- 1/arch/sparc64/mm/ultra.S.~1~ 2005-07-05 17:16:49.000000000 -0700
13 +++ 2/arch/sparc64/mm/ultra.S 2005-07-05 18:32:05.000000000 -0700
14 @@ -249,7 +249,7 @@
15 retl
16 wrpr %g7, 0x0, %pstate
17
18 -__cheetah_flush_tlb_pending: /* 22 insns */
19 +__cheetah_flush_tlb_pending: /* 23 insns */
20 /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
21 rdpr %pstate, %g7
22 sllx %o1, 3, %o1
23 @@ -317,7 +317,7 @@
24 sethi %hi(__cheetah_flush_tlb_pending), %o1
25 or %o1, %lo(__cheetah_flush_tlb_pending), %o1
26 call cheetah_patch_one
27 - mov 22, %o2
28 + mov 23, %o2
29
30 #ifdef DCACHE_ALIASING_POSSIBLE
31 sethi %hi(__flush_dcache_page), %o0
32 --
33 gentoo-sparc@g.o mailing list