mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-10 07:10:27 +00:00
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>
This commit is contained in:
parent
823df43552
commit
82087414c6
@ -83,6 +83,7 @@ system_call_common:
|
|||||||
std r11,GPR11(r1)
|
std r11,GPR11(r1)
|
||||||
std r11,GPR12(r1)
|
std r11,GPR12(r1)
|
||||||
std r11,_XER(r1)
|
std r11,_XER(r1)
|
||||||
|
std r11,_CTR(r1)
|
||||||
std r9,GPR13(r1)
|
std r9,GPR13(r1)
|
||||||
mfcr r9
|
mfcr r9
|
||||||
mflr r10
|
mflr r10
|
||||||
@ -90,8 +91,6 @@ system_call_common:
|
|||||||
std r9,_CCR(r1)
|
std r9,_CCR(r1)
|
||||||
std r10,_LINK(r1)
|
std r10,_LINK(r1)
|
||||||
std r11,_TRAP(r1)
|
std r11,_TRAP(r1)
|
||||||
mfctr r10
|
|
||||||
std r10,_CTR(r1)
|
|
||||||
std r3,ORIG_GPR3(r1)
|
std r3,ORIG_GPR3(r1)
|
||||||
ld r2,PACATOC(r13)
|
ld r2,PACATOC(r13)
|
||||||
addi r9,r1,STACK_FRAME_OVERHEAD
|
addi r9,r1,STACK_FRAME_OVERHEAD
|
||||||
|
Loading…
x
Reference in New Issue
Block a user