summaryrefslogtreecommitdiff
path: root/firmware/kernel.c
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2004-02-25 13:00:36 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2004-02-25 13:00:36 +0000
commitf9c780ccc146fd883374f8f89c14c9ce5968ee51 (patch)
tree7f09a228e34adeed9c626c9f6e91ded8003e678c /firmware/kernel.c
parent34455abfe6c93adbdc835be15cd01af8277229aa (diff)
The cli()/sti() functions are not safe. We should have removed them long ago.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4314 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index 3255ba0b20..1c37f004a4 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -71,18 +71,6 @@ void yield(void)
}
/****************************************************************************
- * Interrupt level setting
- ****************************************************************************/
-int set_irq_level(int level)
-{
- int i;
- /* Read the old level and set the new one */
- asm volatile ("stc sr, %0" : "=r" (i));
- asm volatile ("ldc %0, sr" : : "r" (level << 4));
- return (i >> 4) & 0x0f;
-}
-
-/****************************************************************************
* Queue handling stuff
****************************************************************************/
void queue_init(struct event_queue *q)