summaryrefslogtreecommitdiffstats
path: root/firmware/system.c
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-03-13 16:45:18 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-03-13 16:45:18 +0000
commit81e309dd1a768c2fcf2cc9e6acd16dc01f9ce360 (patch)
treef86855227f2ab1f4963c215128df21effeb7dfbb /firmware/system.c
parent4cee740afa540ce26babb92d26cbb5b524cc245a (diff)
downloadrockbox-81e309dd1a768c2fcf2cc9e6acd16dc01f9ce360.tar.gz
rockbox-81e309dd1a768c2fcf2cc9e6acd16dc01f9ce360.zip
We had a few set_irq_level(15) left in the code, instead of the new set_irq_level(HIGHEST_IRQ_LEVEL). Only one was really used, in system_reboot(), creating a (unlikely) race condition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4374 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/system.c')
-rw-r--r--firmware/system.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/system.c b/firmware/system.c
index cd2c5e34a0..41358a6776 100644
--- a/firmware/system.c
+++ b/firmware/system.c
@@ -302,7 +302,7 @@ void (*vbr[]) (void) __attribute__ ((section (".vectors"))) =
void system_reboot (void)
{
- set_irq_level(15);
+ set_irq_level(HIGHEST_IRQ_LEVEL);
asm volatile ("ldc\t%0,vbr" : : "r"(0));