More cleanup
This commit is contained in:
parent
477414a636
commit
9017de6082
@ -20,29 +20,27 @@ void installArm9Handlers(void)
|
||||
((void (*)())payloadAddress)();
|
||||
}
|
||||
|
||||
static void hexItoa(u32 n, char* out)
|
||||
static void hexItoa(u32 n, char *out)
|
||||
{
|
||||
static const char hexDigits[] = "0123456789ABCDEF";
|
||||
int i = 0;
|
||||
const char hexDigits[] = "0123456789ABCDEF";
|
||||
u32 i = 0;
|
||||
|
||||
while(n > 0)
|
||||
{
|
||||
out[7-i++] = hexDigits[(int)(n & 0xf)];
|
||||
out[7 - i++] = hexDigits[n & 0xF];
|
||||
n >>= 4;
|
||||
}
|
||||
|
||||
for(; i < 8; ++i) out[7-i] = '0';
|
||||
|
||||
out[8] = '\x00';
|
||||
for(; i < 8; i++) out[7 - i] = '0';
|
||||
}
|
||||
|
||||
void detectAndProcessExceptionDumps(void)
|
||||
{
|
||||
static const char* handledExceptionNames[] = {
|
||||
const char *handledExceptionNames[] = {
|
||||
"FIQ", "undefined instruction", "prefetch abort", "data abort"
|
||||
};
|
||||
|
||||
static const char* registerNames[] = {
|
||||
const char *registerNames[] = {
|
||||
"R0", "R1", "R2", "R3", "R4", "R5", "R6", "R7", "R8", "R9", "R10", "R11", "R12",
|
||||
"SP", "LR", "PC", "CPSR"
|
||||
};
|
||||
|
Reference in New Issue
Block a user