forked from len0rd/rockbox
mips: consolidate exception handling, add exception backtraces
Merge the x1000 and jz47xx exception handling code since they use the same exception vectors and handlers. The interrupt handler is now called from the common exception vector, but remains separate for each board since they have different IRQ layouts. The new exception handler can provide a stack traceback from the interrupted code, rather than the (uninteresting) caller traceback displayed by panicf. This allows you to see what led up to a null pointer deref or division by zero, which makes it _much_ easier to track down errors that occur in common leaf functions like strcmp. Change-Id: I59a0ebb5e40fcb36505c3bfdb47f8cac2f9936b1
This commit is contained in:
parent
56d4227897
commit
4bd97c6535
16 changed files with 430 additions and 463 deletions
|
@ -779,10 +779,14 @@ target/arm/crt0.S
|
|||
#endif /* defined(CPU_*) */
|
||||
|
||||
#elif defined(CPU_MIPS) && (CONFIG_PLATFORM & PLATFORM_NATIVE)
|
||||
target/mips/exception-mips.S
|
||||
target/mips/mmu-mips.c
|
||||
target/mips/system-mips.c
|
||||
#if CONFIG_CPU==JZ4732 || CONFIG_CPU==JZ4760B
|
||||
target/mips/ingenic_jz47xx/crt0.S
|
||||
#endif /* CONFIG_CPU == JZ4732 || JZ4760B */
|
||||
#elif CONFIG_CPU==X1000
|
||||
target/mips/ingenic_x1000/crt0.S
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
|
@ -1644,7 +1648,6 @@ drivers/nand_id.c
|
|||
#endif /* CONFIG_CPU == JZ4760B */
|
||||
|
||||
#if CONFIG_CPU == X1000
|
||||
target/mips/ingenic_x1000/crt0.S
|
||||
target/mips/ingenic_x1000/aic-x1000.c
|
||||
target/mips/ingenic_x1000/boot-x1000.c
|
||||
target/mips/ingenic_x1000/clk-x1000.c
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue