diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2008-04-23 23:20:16 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-04-24 06:58:03 -0400 |
commit | 4ae2dcb633c751cfd27deeea5a8b13db35a84d9a (patch) | |
tree | a94b8b478e2ed49c9260859a014201d3040caf65 /arch/powerpc/kernel/misc_64.S | |
parent | 988479ebccc44e141d06ac55e4438d6b473008b5 (diff) |
[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: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/misc_64.S')
-rw-r--r-- | arch/powerpc/kernel/misc_64.S | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/arch/powerpc/kernel/misc_64.S b/arch/powerpc/kernel/misc_64.S index a3c491e88a72..942951e76586 100644 --- a/arch/powerpc/kernel/misc_64.S +++ b/arch/powerpc/kernel/misc_64.S | |||
@@ -27,23 +27,11 @@ | |||
27 | 27 | ||
28 | .text | 28 | .text |
29 | 29 | ||
30 | _GLOBAL(get_msr) | ||
31 | mfmsr r3 | ||
32 | blr | ||
33 | |||
34 | _GLOBAL(get_srr0) | ||
35 | mfsrr0 r3 | ||
36 | blr | ||
37 | |||
38 | _GLOBAL(get_srr1) | ||
39 | mfsrr1 r3 | ||
40 | blr | ||
41 | |||
42 | #ifdef CONFIG_IRQSTACKS | 30 | #ifdef CONFIG_IRQSTACKS |
43 | _GLOBAL(call_do_softirq) | 31 | _GLOBAL(call_do_softirq) |
44 | mflr r0 | 32 | mflr r0 |
45 | std r0,16(r1) | 33 | std r0,16(r1) |
46 | stdu r1,THREAD_SIZE-112(r3) | 34 | stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3) |
47 | mr r1,r3 | 35 | mr r1,r3 |
48 | bl .__do_softirq | 36 | bl .__do_softirq |
49 | ld r1,0(r1) | 37 | ld r1,0(r1) |
@@ -56,7 +44,7 @@ _GLOBAL(call_handle_irq) | |||
56 | mflr r0 | 44 | mflr r0 |
57 | std r0,16(r1) | 45 | std r0,16(r1) |
58 | mtctr r8 | 46 | mtctr r8 |
59 | stdu r1,THREAD_SIZE-112(r5) | 47 | stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r5) |
60 | mr r1,r5 | 48 | mr r1,r5 |
61 | bctrl | 49 | bctrl |
62 | ld r1,0(r1) | 50 | ld r1,0(r1) |
@@ -599,7 +587,7 @@ _GLOBAL(kexec_sequence) | |||
599 | std r0,16(r1) | 587 | std r0,16(r1) |
600 | 588 | ||
601 | /* switch stacks to newstack -- &kexec_stack.stack */ | 589 | /* switch stacks to newstack -- &kexec_stack.stack */ |
602 | stdu r1,THREAD_SIZE-112(r3) | 590 | stdu r1,THREAD_SIZE-STACK_FRAME_OVERHEAD(r3) |
603 | mr r1,r3 | 591 | mr r1,r3 |
604 | 592 | ||
605 | li r0,0 | 593 | li r0,0 |
@@ -616,7 +604,7 @@ _GLOBAL(kexec_sequence) | |||
616 | std r26,-48(r1) | 604 | std r26,-48(r1) |
617 | std r25,-56(r1) | 605 | std r25,-56(r1) |
618 | 606 | ||
619 | stdu r1,-112-64(r1) | 607 | stdu r1,-STACK_FRAME_OVERHEAD-64(r1) |
620 | 608 | ||
621 | /* save args into preserved regs */ | 609 | /* save args into preserved regs */ |
622 | mr r31,r3 /* newstack (both) */ | 610 | mr r31,r3 /* newstack (both) */ |