summaryrefslogtreecommitdiffstats
path: root/firmware/SOURCES
diff options
context:
space:
mode:
authorAidan MacDonald <amachronic@protonmail.com>2022-05-17 14:48:01 +0100
committerAidan MacDonald <amachronic@protonmail.com>2022-10-17 09:04:18 -0400
commit4bd97c653558bde62237f095a6b9810fb5d16491 (patch)
tree61ff3dcd65e66a67dcc1ad6de3e04f76d2709c3f /firmware/SOURCES
parent56d422789706d91edb301373330c259aa2955385 (diff)
downloadrockbox-4bd97c6535.tar.gz
rockbox-4bd97c6535.zip
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
Diffstat (limited to 'firmware/SOURCES')
-rw-r--r--firmware/SOURCES7
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/SOURCES b/firmware/SOURCES
index abce59fe04..bbd67631a9 100644
--- a/firmware/SOURCES
+++ b/firmware/SOURCES
@@ -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