diff options
author | Anton Blanchard <anton@samba.org> | 2012-04-04 18:26:39 +0000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-04-30 15:35:10 +1000 |
commit | 82087414c608440c5ca7faa5c2fb6327daebcd15 (patch) | |
tree | 156c5ae4bf4e0c2b8e27f2bc499b2248a7fe28a4 | |
parent | 823df43552da39fd48a2dd74949363a1c8cf62bb (diff) |
powerpc: No need to preserve count register across system call
The count register is volatile so we don't need to preserve it.
Store zero to the entry in the exception frame.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/entry_64.S | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 7f1e6de9a5a..ba72ddbe523 100644 --- a/arch/powerpc/kernel/entry_64.S +++ b/arch/powerpc/kernel/entry_64.S @@ -83,6 +83,7 @@ system_call_common: std r11,GPR11(r1) std r11,GPR12(r1) std r11,_XER(r1) + std r11,_CTR(r1) std r9,GPR13(r1) mfcr r9 mflr r10 @@ -90,8 +91,6 @@ system_call_common: std r9,_CCR(r1) std r10,_LINK(r1) std r11,_TRAP(r1) - mfctr r10 - std r10,_CTR(r1) std r3,ORIG_GPR3(r1) ld r2,PACATOC(r13) addi r9,r1,STACK_FRAME_OVERHEAD |