summaryrefslogtreecommitdiffstats
path: root/bootloader/telechips.c
diff options
context:
space:
mode:
authorVitja Makarov <vitja.makarov@gmail.com>2009-09-21 08:38:52 +0000
committerVitja Makarov <vitja.makarov@gmail.com>2009-09-21 08:38:52 +0000
commit0152fe604b7b68937151f7bebd01f1d9542ac2e6 (patch)
treedcbeed2e28460edb13a5a2b2f4cf7c7985f2de01 /bootloader/telechips.c
parent14ac374ffe568401c43536c9585ded15ec572059 (diff)
downloadrockbox-0152fe604b7b68937151f7bebd01f1d9542ac2e6.tar.gz
rockbox-0152fe604b7b68937151f7bebd01f1d9542ac2e6.tar.bz2
rockbox-0152fe604b7b68937151f7bebd01f1d9542ac2e6.zip
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/telechips.c')
-rw-r--r--bootloader/telechips.c6
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