aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/entry-header.S
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2005-04-26 10:18:26 -0400
committerRussell King <rmk@dyn-67.arm.linux.org.uk>2005-04-26 10:18:26 -0400
commit1ec42c0c97186fadc48810ccaf2dc573cd957ea1 (patch)
tree5476806ed2a9a37409a01b638c9cd62d0ca966a0 /arch/arm/kernel/entry-header.S
parent7933523dc75823342dbd70a27760a82a5302baf4 (diff)
[PATCH] ARM: Remove argument for disable_irq/enable_irq
Since we do not require a register for these operations, we can remove this unnecessary argument. Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/entry-header.S')
-rw-r--r--arch/arm/kernel/entry-header.S16
1 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S
index 4039d8c120b5..109f4f10d314 100644
--- a/arch/arm/kernel/entry-header.S
+++ b/arch/arm/kernel/entry-header.S
@@ -63,25 +63,21 @@
63#define S_R0 0 63#define S_R0 0
64#define S_OFF 8 64#define S_OFF 8
65 65
66 .macro set_cpsr_c, reg, mode
67 msr cpsr_c, \mode
68 .endm
69
70#if __LINUX_ARM_ARCH__ >= 6 66#if __LINUX_ARM_ARCH__ >= 6
71 .macro disable_irq, temp 67 .macro disable_irq
72 cpsid i 68 cpsid i
73 .endm 69 .endm
74 70
75 .macro enable_irq, temp 71 .macro enable_irq
76 cpsie i 72 cpsie i
77 .endm 73 .endm
78#else 74#else
79 .macro disable_irq, temp 75 .macro disable_irq
80 set_cpsr_c \temp, #PSR_I_BIT | MODE_SVC 76 msr cpsr_c, #PSR_I_BIT | SVC_MODE
81 .endm 77 .endm
82 78
83 .macro enable_irq, temp 79 .macro enable_irq
84 set_cpsr_c \temp, #MODE_SVC 80 msr cpsr_c, #SVC_MODE
85 .endm 81 .endm
86#endif 82#endif
87 83