aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/entry-armv.S
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-01-09 07:57:37 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-06 11:46:48 -0500
commitae0a846e411dc0b568e8ccda584896310ee5f369 (patch)
tree59d97342cdb29b61cc0da3cf1ebf0498ca799d14 /arch/arm/kernel/entry-armv.S
parentd941caa2537a01653704a8c1148d330a3b2755f1 (diff)
[ARM] Move processor_modes[] to .../process.c
bad_mode() currently prints the mode which caused the exception, and then causes an oops dump to be printed which again displays this information (since the CPSR in the struct pt_regs is correct.) This leads to processor_modes[] being shared between traps.c and process.c with a local declaration of it. We can clean this up by moving processor_modes[] to process.c and removing the duplication, resulting in processor_modes[] becoming static. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/entry-armv.S')
-rw-r--r--arch/arm/kernel/entry-armv.S1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
index 8517c3c3eb33..cc10a093a545 100644
--- a/arch/arm/kernel/entry-armv.S
+++ b/arch/arm/kernel/entry-armv.S
@@ -99,7 +99,6 @@ common_invalid:
99 @ cpsr_<exception>, "old_r0" 99 @ cpsr_<exception>, "old_r0"
100 100
101 mov r0, sp 101 mov r0, sp
102 and r2, r6, #0x1f
103 b bad_mode 102 b bad_mode
104 103
105/* 104/*