Commit 906648b4 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] get_wchan() sparc64 fix

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.
parent b283f09c
......@@ -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), \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment