diff options
author | Randall Spangler <rspangler@chromium.org> | 2013-07-24 11:19:10 -0700 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-07-24 14:05:17 -0700 |
commit | fe660aa3729aa6f468a62f4e6c37f3dd5c85503d (patch) | |
tree | 3d784cdf240e80fd31c2fdc291c24ddaca6b7d08 /chip/lm4/watchdog.c | |
parent | 596480de062da815326071630ebf2348ce1c02ac (diff) | |
download | chrome-ec-fe660aa3729aa6f468a62f4e6c37f3dd5c85503d.tar.gz |
Standardize concatenation macros
To create a token by concatenating already-defined macros and new
text, it's necessary to use multiple levels of macro. We'd already
done that in several places in the code such as STM32_CAT; this now
standardizes it into a single place.
BUG=chrome-os-partner:18343
BRANCH=none
TEST=Build all platforms; examine ec.RO.map to see that irq_*_handler and prio_* symbols
evaluated the same as before. (Other macro evaluations would simply fail to compile
if they were incorrect, since the concatenated tokens wouldn't fully expand.)
Change-Id: Ic9bf11d27881a84507fe7b6096dab6217c6c6dc7
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/63231
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'chip/lm4/watchdog.c')
-rw-r--r-- | chip/lm4/watchdog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chip/lm4/watchdog.c b/chip/lm4/watchdog.c index 7bc7aa8a60..ef817cf715 100644 --- a/chip/lm4/watchdog.c +++ b/chip/lm4/watchdog.c @@ -48,7 +48,7 @@ void IRQ_HANDLER(LM4_IRQ_WATCHDOG)(void) "b task_resched_if_needed\n" : : [irq] "i" (LM4_IRQ_WATCHDOG)); } -const struct irq_priority IRQ_BUILD_NAME(prio_, LM4_IRQ_WATCHDOG, ) +const struct irq_priority IRQ_PRIORITY(LM4_IRQ_WATCHDOG) __attribute__((section(".rodata.irqprio"))) = {LM4_IRQ_WATCHDOG, 0}; /* put the watchdog at the highest priority */ |