Refactor the exception handling code
This commit is contained in:
@@ -7,10 +7,28 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "types.h"
|
||||
#define NULL 0
|
||||
|
||||
void __attribute__((noreturn)) mcuReboot(void);
|
||||
void clearDCacheAndDMB(void);
|
||||
|
||||
void FIQHandler(void);
|
||||
void undefinedInstructionHandler(void);
|
||||
void dataAbortHandler(void);
|
||||
void prefetchAbortHandler(void);
|
||||
void prefetchAbortHandler(void);
|
||||
|
||||
typedef struct __attribute__((packed))
|
||||
{
|
||||
u32 magic[2];
|
||||
u16 versionMinor, versionMajor;
|
||||
|
||||
u16 processor, core;
|
||||
u32 type;
|
||||
|
||||
u32 totalSize;
|
||||
u32 registerDumpSize;
|
||||
u32 codeDumpSize;
|
||||
u32 stackDumpSize;
|
||||
u32 additionalDataSize;
|
||||
} ExceptionDumpHeader;
|
||||
Reference in New Issue
Block a user