summaryrefslogtreecommitdiff
path: root/uisimulator/win32/kernel.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 /uisimulator/win32/kernel.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 'uisimulator/win32/kernel.c')
-rw-r--r--uisimulator/win32/kernel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uisimulator/win32/kernel.c b/uisimulator/win32/kernel.c
index 466950eba0..9c82435df2 100644
--- a/uisimulator/win32/kernel.c
+++ b/uisimulator/win32/kernel.c
@@ -86,7 +86,7 @@ void queue_post(struct event_queue *q, int id, void *data)
86 int wr; 86 int wr;
87 int oldlevel; 87 int oldlevel;
88 88
89 oldlevel = set_irq_level(15); 89 oldlevel = set_irq_level(HIGHEST_IRQ_LEVEL);
90 wr = (q->write++) & QUEUE_LENGTH_MASK; 90 wr = (q->write++) & QUEUE_LENGTH_MASK;
91 91
92 q->events[wr].id = id; 92 q->events[wr].id = id;