modified to use library functions (memcpy(), bzero())

This commit is contained in:
Markus Fröschle
2013-08-21 08:55:47 +00:00
parent 8a7f62060a
commit dd2cc0d3b9
4 changed files with 20 additions and 23 deletions

View File

@@ -24,6 +24,9 @@ void fault_handler(uint32_t pc, uint32_t format_status)
xprintf("format_status: %lx\r\n", format_status);
xprintf("pc: %lx\r\n", pc);
/*
* extract info from format-/status word
*/
format = (format_status & 0b11110000000000000000000000000000) >> 28;
fault_status = ((format_status & 0b00001100000000000000000000000000) >> 26) |
((format_status & 0b00000000000000110000000000000000) >> 16);