summaryrefslogtreecommitdiff
path: root/chip/lm4/watchdog.c
diff options
context:
space:
mode:
authorRandall Spangler <rspangler@chromium.org>2011-12-19 13:36:18 -0800
committerRandall Spangler <rspangler@chromium.org>2011-12-19 13:48:05 -0800
commit84a286b1f49c25df1d44bbf87d748b20421f5521 (patch)
treecdfb346f7d5690921d96dc657bca4a07723321ff /chip/lm4/watchdog.c
parent117021278ca6a3069c7bb8c55868a2f40530ae1a (diff)
downloadchrome-ec-84a286b1f49c25df1d44bbf87d748b20421f5521.tar.gz
Use #defined constants for IRQ names
Signed-off-by: Randall Spangler <rspangler@chromium.org> BUG=none TEST=none Change-Id: If07ac671cef6b9d0e9fe0a96bf04455a3d2626ff
Diffstat (limited to 'chip/lm4/watchdog.c')
-rw-r--r--chip/lm4/watchdog.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c
index 42a8c8961d..86d9087a26 100644
--- a/chip/lm4/watchdog.c
+++ b/chip/lm4/watchdog.c
@@ -69,8 +69,8 @@ void watchdog_trace(uint32_t excep_lr, uint32_t excep_sp)
command_timer_info(0, NULL);
}
-void irq_18_handler(void) __attribute__((naked));
-void irq_18_handler(void)
+void irq_LM4_IRQ_WATCHDOG_handler(void) __attribute__((naked));
+void irq_LM4_IRQ_WATCHDOG_handler(void)
{
asm volatile("mov r0, lr\n"
"mov r1, sp\n"
@@ -80,7 +80,8 @@ void irq_18_handler(void)
"mov r0, lr\n"
"b task_resched_if_needed\n");
}
-const struct irq_priority prio_18 __attribute__((section(".rodata.irqprio")))
+const struct irq_priority prio_LM4_IRQ_WATCHDOG
+ __attribute__((section(".rodata.irqprio")))
= {LM4_IRQ_WATCHDOG, 0}; /* put the watchdog at the highest
priority */