sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
The old ctrl in/out routines are non-portable and unsuitable for cross-platform use. While drivers/sh has already been sanitized, there is still quite a lot of code that is not. This converts the arch/sh/ bits over, which permits us to flag the routines as deprecated whilst still building with -Werror for the architecture code, and to ensure that future users are not added. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -58,7 +58,7 @@ BUILD_TRAP_HANDLER(debug)
|
||||
TRAP_HANDLER_DECL;
|
||||
|
||||
/* Rewind */
|
||||
regs->pc -= instruction_size(ctrl_inw(regs->pc - 4));
|
||||
regs->pc -= instruction_size(__raw_readw(regs->pc - 4));
|
||||
|
||||
if (notify_die(DIE_TRAP, "debug trap", regs, 0, vec & 0xff,
|
||||
SIGTRAP) == NOTIFY_STOP)
|
||||
@@ -75,7 +75,7 @@ BUILD_TRAP_HANDLER(bug)
|
||||
TRAP_HANDLER_DECL;
|
||||
|
||||
/* Rewind */
|
||||
regs->pc -= instruction_size(ctrl_inw(regs->pc - 4));
|
||||
regs->pc -= instruction_size(__raw_readw(regs->pc - 4));
|
||||
|
||||
if (notify_die(DIE_TRAP, "bug trap", regs, 0, TRAPA_BUG_OPCODE & 0xff,
|
||||
SIGTRAP) == NOTIFY_STOP)
|
||||
|
Reference in New Issue
Block a user