]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] Move processor_modes[] to .../process.c
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 9 Jan 2007 12:57:37 +0000 (12:57 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 6 Feb 2007 16:46:48 +0000 (16:46 +0000)
commitae0a846e411dc0b568e8ccda584896310ee5f369
tree59d97342cdb29b61cc0da3cf1ebf0498ca799d14
parentd941caa2537a01653704a8c1148d330a3b2755f1
[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>
arch/arm/kernel/entry-armv.S
arch/arm/kernel/process.c
arch/arm/kernel/traps.c