X-Git-Url: https://git.wirehaze.ovh/stm32f411ceu6.git/blobdiff_plain/cef403c131fbb65f09837b0501b7e558e1462765..6a64eec1a3c435b02452fc8b50d28bd4649278c3:/sys/core/kentry.c diff --git a/sys/core/kentry.c b/sys/core/kentry.c index 7fcc4b8..c78af6b 100644 --- a/sys/core/kentry.c +++ b/sys/core/kentry.c @@ -20,14 +20,14 @@ kentry (void) { unsigned int line; - /* Test UART and LED ---------------------------------------------------- */ + for (line = 0; line < sizeof text / sizeof *text; ++line) + kputs_busytc (text[line]); + + /* Trigger a fault to test kernel panic */ + asm ("udf #0"); + + kputs_busytc ("Unreachable"); while (1) - { - for (line = 0; line < sizeof text / sizeof *text; ++line) - { - kputs_busytc (text[line]); - led_toggle (); - } - } + asm ("wfi"); }