diff options
author | Pixel <pixel@nobis-crew.org> | 2011-02-02 08:35:38 -0800 |
---|---|---|
committer | Pixel <pixel@nobis-crew.org> | 2011-02-02 08:35:38 -0800 |
commit | 3ca9b28c5b04220565c206bd73d9ebb48b64db3b (patch) | |
tree | 86ffbb085f2c255de44321c858780c77dc7583d8 /arch/arm/lpc17xx/handlers.c | |
parent | 29dc401e5ba2c3f5676d426c4c1b10f1fc475fcd (diff) |
Making a sample code for the 'romfs' thingy.
Diffstat (limited to 'arch/arm/lpc17xx/handlers.c')
-rw-r--r-- | arch/arm/lpc17xx/handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/lpc17xx/handlers.c b/arch/arm/lpc17xx/handlers.c index a421aff..50b02e8 100644 --- a/arch/arm/lpc17xx/handlers.c +++ b/arch/arm/lpc17xx/handlers.c @@ -35,6 +35,9 @@ void general_C_handler(enum FaultType fault, struct fault_data_extra_t * fault_d uint8_t MMFSR = SCB->CFSR & 0xff; uint8_t BFSR = (SCB->CFSR >> 8) & 0xff; uint16_t UFSR = (SCB->CFSR >> 16) & 0xffff; + (void) MMFSR; + (void) BFSR; + (void) UFSR; struct fault_data_cpu_t * fault_data_cpu = (struct fault_data_cpu_t *) ((eflags & 4) ? (void *) __get_PSP() : (void *) (fault_data_extra + 1)); DBGOUT("***FAULT***\r\neflags = 0x0%x\r\nPSP = %p\r\nType: ", eflags, __get_PSP()); switch (fault) { |