diff options
Diffstat (limited to 'arch/powerpc/kernel/entry_32.S')
-rw-r--r-- | arch/powerpc/kernel/entry_32.S | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/entry_32.S b/arch/powerpc/kernel/entry_32.S index da52269aec1e..e6fca6a9014d 100644 --- a/arch/powerpc/kernel/entry_32.S +++ b/arch/powerpc/kernel/entry_32.S | |||
@@ -343,7 +343,12 @@ syscall_dotrace: | |||
343 | stw r0,_TRAP(r1) | 343 | stw r0,_TRAP(r1) |
344 | addi r3,r1,STACK_FRAME_OVERHEAD | 344 | addi r3,r1,STACK_FRAME_OVERHEAD |
345 | bl do_syscall_trace_enter | 345 | bl do_syscall_trace_enter |
346 | lwz r0,GPR0(r1) /* Restore original registers */ | 346 | /* |
347 | * Restore argument registers possibly just changed. | ||
348 | * We use the return value of do_syscall_trace_enter | ||
349 | * for call number to look up in the table (r0). | ||
350 | */ | ||
351 | mr r0,r3 | ||
347 | lwz r3,GPR3(r1) | 352 | lwz r3,GPR3(r1) |
348 | lwz r4,GPR4(r1) | 353 | lwz r4,GPR4(r1) |
349 | lwz r5,GPR5(r1) | 354 | lwz r5,GPR5(r1) |