From 8c201b1e6c4683f3f078fbf747e0b78b7af3ea91 Mon Sep 17 00:00:00 2001 From: Vic Yang Date: Mon, 9 Jun 2014 13:57:14 -0700 Subject: Keep IRQ_HANDLER macro when building without common runtime Without common runtime, we need to use IRQ_HANDLER to define IRQ handlers. Previously IRQ_HANDLER is only implemented in irq_handler.h which is not included by task.h when building without common runtime. This causes problem when we want to use code that includes task.h and uses IRQ. By adding IRQ_HANDLER to task.h, we don't need to include irq_handler.h in any case, and thus avoid that problem. BUG=None TEST=make buildall TEST=include task.h instead of irq_handler.h. Check Keyborg still builds. BRANCH=None Change-Id: I1213506132025fc656630565f58686b9e7de940c Signed-off-by: Vic Yang Reviewed-on: https://chromium-review.googlesource.com/203084 Reviewed-by: Vincent Palatin --- include/task.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/task.h b/include/task.h index 1d80a0b2f7..3455dfc097 100644 --- a/include/task.h +++ b/include/task.h @@ -239,6 +239,7 @@ struct irq_priority { #include "irq_handler.h" #else #define DECLARE_IRQ(irq, routine, priority) +#define IRQ_HANDLER(irqname) CONCAT3(irq_, irqname, _handler) #endif #endif /* __CROS_EC_TASK_H */ -- cgit v1.2.1