diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2010-11-22 13:07:10 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-11-22 13:07:10 +0000 |
commit | 394965dd6493943a908a044c5cd3bc3d27e599ec (patch) | |
tree | b8560127f9e987a9fc7674fb1bc1d25ea20f2189 /src/console | |
parent | 6e9ab97106925f74b993ddf66db0b6525dc71580 (diff) | |
download | coreboot-394965dd6493943a908a044c5cd3bc3d27e599ec.tar.xz |
Workaround to get die.c to work with romcc.
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Acked-by: Patrick Georgi <patrick@georgi-clan.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6113 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console')
-rw-r--r-- | src/console/die.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/console/die.c b/src/console/die.c index 5e12a6c82f..8c97f89b27 100644 --- a/src/console/die.c +++ b/src/console/die.c @@ -23,8 +23,14 @@ #include <arch/hlt.h> #include <console/console.h> +#ifndef __ROMCC__ +#define NORETURN __attribute__((noreturn)) +#else +#define NORETURN +#endif + /* Report a fatal error */ -void __attribute__((noreturn)) die(const char *msg) +void NORETURN die(const char *msg) { print_emerg(msg); do { |