Skip to content
Commit ae0a846e authored by Russell King's avatar Russell King Committed by Russell King
Browse files

[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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d941caa2
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