From 4c0d75cccc41335bcc39677d39d6761b77024dc6 Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Sat, 16 Nov 2024 15:16:32 -0700 Subject: Minor changes to exception handling. --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ed82a3a..d7eab9b 100644 --- a/src/main.c +++ b/src/main.c @@ -105,6 +105,8 @@ const char* hello_world_static = "Hello, World!\r\n"; int test(char ch, ...); +volatile int zero = 0; + /* Main routine. This is called on_reset once everything else has been set up. */ int main(void) @@ -123,9 +125,12 @@ int main(void) volatile uint32_t dl = (10 * 6400000 / 8 / BAUD_RATE + 5) / 10; UART.dl.set(UART1, dl); - char buf[32] = { 0 }; + char buf[32] = {0}; volatile uint32_t i = 0xdeadbeef; + asm volatile("ebreak"); + + panic(0xdeadbeef); stack_dump(&i); -- cgit