Break out debug dump functions into their own compilation unit

This commit is contained in:
Angus Gratton 2016-05-03 15:10:46 +10:00
parent 640609c3f5
commit 52f9b13faf
4 changed files with 122 additions and 75 deletions

View file

@ -69,7 +69,7 @@ DebugExceptionVector:
wsr a0, excsave2
mov a2, a1
call0 sdk_user_fatal_exception_handler
call0 fatal_exception_handler
rfi 2
.org VecBase + 0x20
@ -83,7 +83,7 @@ KernelExceptionVector:
break 1, 0
mov a2, a1
call0 sdk_user_fatal_exception_handler
call0 fatal_exception_handler
rfe
.org VecBase + 0x50
@ -101,7 +101,7 @@ DoubleExceptionVector:
break 1, 4
mov a2, a1
call0 sdk_user_fatal_exception_handler
call0 fatal_exception_handler
/* Reset vector at offset 0x80 is unused, as vecbase gets reset to mask ROM
* vectors on chip reset. */
@ -259,7 +259,7 @@ LoadStoreErrorHandler:
l32i a4, sp, 0x10
rsr a1, excsave1
mov a2, a1
call0 sdk_user_fatal_exception_handler
call0 fatal_exception_handler
.balign 4
.LSE_assign_a1:
@ -520,7 +520,7 @@ UserExceptionHandler:
.LUserFailOtherExceptionCause:
break 1, 1
addi a2, a1, 0x50 /* UserExceptionHandler pushes stack down 0x50 */
call0 sdk_user_fatal_exception_handler
call0 fatal_exception_handler
/* _xt_user_exit is pushed onto the stack as part of the user exception handler,
restores same set registers which were saved there and returns from exception */