Commit 3b3b091d authored by Anton Blanchard's avatar Anton Blanchard

ppc64: Fix my overoptimisation of zeroing RESULT. Yes Linus, it

was all my fault.
parent 109095f3
...@@ -58,8 +58,6 @@ show_syscalls_task: ...@@ -58,8 +58,6 @@ show_syscalls_task:
*/ */
_GLOBAL(DoSyscall) _GLOBAL(DoSyscall)
std r3,ORIG_GPR3(r1) std r3,ORIG_GPR3(r1)
li r12,0
std r12,RESULT(r1)
ld r11,_CCR(r1) /* Clear SO bit in CR */ ld r11,_CCR(r1) /* Clear SO bit in CR */
lis r10,0x1000 lis r10,0x1000
andc r11,r11,r10 andc r11,r11,r10
......
...@@ -1118,6 +1118,12 @@ _GLOBAL(save_remaining_regs) ...@@ -1118,6 +1118,12 @@ _GLOBAL(save_remaining_regs)
SAVE_4GPRS(16, r1) SAVE_4GPRS(16, r1)
SAVE_8GPRS(24, r1) SAVE_8GPRS(24, r1)
/*
* Clear the RESULT field
*/
li r22,0
std r22,RESULT(r1)
/* /*
* Test if from user state; result will be tested later * Test if from user state; result will be tested later
*/ */
......
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