Add stack memory dump to fatal exception handler
This commit is contained in:
parent
b2c032a867
commit
f9fb0f212c
2 changed files with 28 additions and 2 deletions
|
@ -68,6 +68,7 @@ DebugExceptionVector:
|
|||
.type DebugExceptionVector, @function
|
||||
|
||||
wsr a0, excsave2
|
||||
mov a2, a1
|
||||
call0 sdk_user_fatal_exception_handler
|
||||
rfi 2
|
||||
|
||||
|
@ -81,6 +82,7 @@ KernelExceptionVector:
|
|||
.type KernelExceptionVector, @function
|
||||
|
||||
break 1, 0
|
||||
mov a2, a1
|
||||
call0 sdk_user_fatal_exception_handler
|
||||
rfe
|
||||
|
||||
|
@ -98,6 +100,7 @@ DoubleExceptionVector:
|
|||
.type DoubleExceptionVector, @function
|
||||
|
||||
break 1, 4
|
||||
mov a2, a1
|
||||
call0 sdk_user_fatal_exception_handler
|
||||
|
||||
/* Reset vector at offset 0x80 is unused, as vecbase gets reset to mask ROM
|
||||
|
@ -251,10 +254,11 @@ LoadStoreErrorHandler:
|
|||
* will have correct values */
|
||||
wsr a0, sar
|
||||
l32i a0, sp, 0
|
||||
l32i a2, sp, 0x08
|
||||
/*l32i a2, sp, 0x08*/
|
||||
l32i a3, sp, 0x0c
|
||||
l32i a4, sp, 0x10
|
||||
rsr a1, excsave1
|
||||
mov a2, a1
|
||||
call0 sdk_user_fatal_exception_handler
|
||||
|
||||
.balign 4
|
||||
|
@ -515,6 +519,7 @@ UserExceptionHandler:
|
|||
.literal_position
|
||||
.LUserFailOtherExceptionCause:
|
||||
break 1, 1
|
||||
addi a2, a1, 0x50 /* UserExceptionHandler pushes stack down 0x50 */
|
||||
call0 sdk_user_fatal_exception_handler
|
||||
|
||||
/* _xt_user_exit is pushed onto the stack as part of the user exception handler,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue