
From: William Lee Irwin III <wli@holomorphy.com>

Now the scheduler text is in its own ELF section this branch is asking for
an illegal displacement.


---

 25-akpm/include/asm-sparc64/system.h |    4 +++-
 1 files changed, 3 insertions(+), 1 deletion(-)

diff -puN include/asm-sparc64/system.h~wchan-use-ELF-sections-sparc64-fix include/asm-sparc64/system.h
--- 25/include/asm-sparc64/system.h~wchan-use-ELF-sections-sparc64-fix	2004-04-08 13:28:13.527245152 -0700
+++ 25-akpm/include/asm-sparc64/system.h	2004-04-08 13:28:13.530244696 -0700
@@ -205,8 +205,10 @@ do {	if (test_thread_flag(TIF_PERFCTR)) 
 	"ldx	[%%g6 + %7], %%g4\n\t"					\
 	"wrpr	%%g0, 0x96, %%pstate\n\t"				\
 	"andcc	%%o7, %6, %%g0\n\t"					\
-	"bne,pn	%%icc, ret_from_syscall\n\t"				\
+	"beq,pn %%icc, 1f\n\t"						\
 	" mov	%%g5, %0\n\t"						\
+	"b,a ret_from_syscall\n\t"					\
+	"1:\n\t"							\
 	: "=&r" (last)							\
 	: "0" (next->thread_info),					\
 	  "i" (TI_WSTATE), "i" (TI_KSP), "i" (TI_FLAGS), "i" (TI_CWP),	\

_
