summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2014-06-09 13:57:14 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-06-10 00:16:50 +0000
commit8c201b1e6c4683f3f078fbf747e0b78b7af3ea91 (patch)
tree42c3632886190ee97844be705a3ed3b59a4ef350
parent72357cd1edf885e559dbb715b33cfb861a0a3265 (diff)
downloadchrome-ec-8c201b1e6c4683f3f078fbf747e0b78b7af3ea91.tar.gz
Keep IRQ_HANDLER macro when building without common runtimestabilize-5944.Bstabilize-5943.B
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 <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/203084 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--include/task.h1
1 files changed, 1 insertions, 0 deletions
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 */