diff options
author | Vitja Makarov <vitja.makarov@gmail.com> | 2009-09-21 08:38:52 +0000 |
---|---|---|
committer | Vitja Makarov <vitja.makarov@gmail.com> | 2009-09-21 08:38:52 +0000 |
commit | 0152fe604b7b68937151f7bebd01f1d9542ac2e6 (patch) | |
tree | dcbeed2e28460edb13a5a2b2f4cf7c7985f2de01 /bootloader | |
parent | 14ac374ffe568401c43536c9585ded15ec572059 (diff) |
bootloader/telechips: disable irqs before jumping to rockbox
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22762 a1c6a512-1295-4272-9138-f99709370657
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 |