arch: arc: use top of isr stack as exception stack and bug fixes
* re-use top of isr stack as exception stack * bug fixes in irq offload's implementation * improve kernel oops implementation Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
This commit is contained in:
parent
1c4fe3edc0
commit
97d0436486
3 changed files with 117 additions and 53 deletions
|
@ -39,6 +39,13 @@ void _Fault(const NANO_ESF *esf)
|
|||
code = _ARC_V2_ECR_CODE(ecr);
|
||||
parameter = _ARC_V2_ECR_PARAMETER(ecr);
|
||||
|
||||
|
||||
/* exception raised by kernel */
|
||||
if (vector == 0x9 && parameter == _TRAP_S_CALL_RUNTIME_EXCEPT) {
|
||||
_NanoFatalErrorHandler(esf->r0, esf);
|
||||
return;
|
||||
}
|
||||
|
||||
printk("Exception vector: 0x%x, cause code: 0x%x, parameter 0x%x\n",
|
||||
vector, code, parameter);
|
||||
printk("Address 0x%x\n", exc_addr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue