diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2015-10-30 20:52:51 +0100 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2015-11-14 08:42:20 +0100 |
commit | 541366da6a93f52f468b408ba24ab6bb5e4fd3d8 (patch) | |
tree | ed6db5d9c9272f7f5f5da71b50725304177e092e /arch/arc/kernel/entry.S | |
parent | ARC: remove extraneous header include (diff) | |
download | linux-541366da6a93f52f468b408ba24ab6bb5e4fd3d8.tar.xz linux-541366da6a93f52f468b408ba24ab6bb5e4fd3d8.zip |
ARC: [arcompact] Handle bus error from userspace as Interrupt not exception
Bus errors from userspace on ARCompact based cores are handled by core
as a high priority L2 interrupt but current code treated it as interrupt
Handling an interrupt like exception is certainly not going to go unnoticed.
(and it worked so far as we never saw a Bus error from userspace until
IPPK guys tested a DDR controller with ECC error detection etc hence
needed to explicitly trigger/handle such errors)
- So move mem_service exception handler from common code into ARCv2 code.
- In ARCompact code, define mem_service as L2 interrupt handler which
just drops down to pure kernel mode and goes of to enqueue SIGBUS
Reported-by: Nelson Pereira <npereira@synopsys.com>
Tested-by: Ana Martins <amartins@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to '')
-rw-r--r-- | arch/arc/kernel/entry.S | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/arch/arc/kernel/entry.S b/arch/arc/kernel/entry.S index 589abf5172d6..2efb0625331d 100644 --- a/arch/arc/kernel/entry.S +++ b/arch/arc/kernel/entry.S @@ -93,23 +93,6 @@ ENTRY(instr_service) END(instr_service) ; --------------------------------------------- -; Memory Error Exception Handler -; --------------------------------------------- - -ENTRY(mem_service) - - EXCEPTION_PROLOGUE - - lr r0, [efa] - mov r1, sp - - FAKE_RET_FROM_EXCPN - - bl do_memory_error - b ret_from_exception -END(mem_service) - -; --------------------------------------------- ; Machine Check Exception Handler ; --------------------------------------------- |