diff options
Diffstat (limited to 'bootloader')
-rw-r--r-- | bootloader/telechips.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bootloader/telechips.c b/bootloader/telechips.c index 8babbf3b62..98f8bebc38 100644 --- a/bootloader/telechips.c +++ b/bootloader/telechips.c @@ -177,11 +177,13 @@ void* main(void) } else if (rc == EOK) { - int(*kernel_entry)(void); + int(*kernel_entry)(void) = (void *) loadbuffer; - kernel_entry = (void*) loadbuffer; + disable_irq(); rc = kernel_entry(); } + + panicf("Boot failed!"); #else show_debug_screen(); #endif |