summaryrefslogtreecommitdiffstats
path: root/firmware/kernel.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-07-05 07:14:24 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-07-05 07:14:24 +0000
commit60efd38bbea318292502c398d41ba3c1044bbb0c (patch)
tree3ceab1cda84743906e601f2074a50054097a5a4c /firmware/kernel.c
parent21b90e3466b28b9885887f679b264ba4073b76bc (diff)
downloadrockbox-60efd38bbea318292502c398d41ba3c1044bbb0c.tar.gz
rockbox-60efd38bbea318292502c398d41ba3c1044bbb0c.zip
Gigabeat: Use vectored IRQ mode interrupts and add a trap for unhandled ones.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13792 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/kernel.c')
-rw-r--r--firmware/kernel.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/firmware/kernel.c b/firmware/kernel.c
index fcee53f331..2d4ccde267 100644
--- a/firmware/kernel.c
+++ b/firmware/kernel.c
@@ -724,8 +724,13 @@ void tick_start(unsigned int interval_in_ms)
INTMSK &= ~(1 << 14); // timer 4 unmask interrupts
}
-void timer4(void) {
+void TIMER4(void)
+{
int i;
+
+ SRCPND = TIMER4_MASK;
+ INTPND = TIMER4_MASK;
+
/* Run through the list of tick tasks */
for(i = 0; i < MAX_NUM_TICK_TASKS; i++)
{
@@ -736,9 +741,6 @@ void timer4(void) {
}
current_tick++;
-
- /* following needs to be fixed. */
- /*wake_up_thread();*/
}
#endif