Commit 4ae2dcb6 authored by Kumar Gala's avatar Kumar Gala Committed by Paul Mackerras

[POWERPC] Clean up misc_64.S

* Removed get_msr(), get_srr0(), and get_srr1() - not used anywhere
* Use STACK_FRAME_OVERHEAD instead of magic number
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 988479eb
...@@ -27,23 +27,11 @@ ...@@ -27,23 +27,11 @@
.text .text
_GLOBAL(get_msr)
mfmsr r3
blr
_GLOBAL(get_srr0)
mfsrr0 r3
blr
_GLOBAL(get_srr1)
mfsrr1 r3
blr
#ifdef CONFIG_IRQSTACKS #ifdef CONFIG_IRQSTACKS
_GLOBAL(call_do_softirq) _GLOBAL(call_do_softirq)
mflr r0 mflr r0
std r0,16(r1) std r0,16(r1)
stdu r1,THREAD_SIZE-112(r3) stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3)
mr r1,r3 mr r1,r3
bl .__do_softirq bl .__do_softirq
ld r1,0(r1) ld r1,0(r1)
...@@ -56,7 +44,7 @@ _GLOBAL(call_handle_irq) ...@@ -56,7 +44,7 @@ _GLOBAL(call_handle_irq)
mflr r0 mflr r0
std r0,16(r1) std r0,16(r1)
mtctr r8 mtctr r8
stdu r1,THREAD_SIZE-112(r5) stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r5)
mr r1,r5 mr r1,r5
bctrl bctrl
ld r1,0(r1) ld r1,0(r1)
...@@ -599,7 +587,7 @@ _GLOBAL(kexec_sequence) ...@@ -599,7 +587,7 @@ _GLOBAL(kexec_sequence)
std r0,16(r1) std r0,16(r1)
/* switch stacks to newstack -- &kexec_stack.stack */ /* switch stacks to newstack -- &kexec_stack.stack */
stdu r1,THREAD_SIZE-112(r3) stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3)
mr r1,r3 mr r1,r3
li r0,0 li r0,0
...@@ -616,7 +604,7 @@ _GLOBAL(kexec_sequence) ...@@ -616,7 +604,7 @@ _GLOBAL(kexec_sequence)
std r26,-48(r1) std r26,-48(r1)
std r25,-56(r1) std r25,-56(r1)
stdu r1,-112-64(r1) stdu r1,-STACK_FRAME_OVERHEAD-64(r1)
/* save args into preserved regs */ /* save args into preserved regs */
mr r31,r3 /* newstack (both) */ mr r31,r3 /* newstack (both) */
......
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