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
This commit is contained in:
Patrick Georgi 2010-11-22 13:07:10 +00:00 committed by Patrick Georgi
parent 6e9ab97106
commit 394965dd64
1 changed files with 7 additions and 1 deletions

View File

@ -23,8 +23,14 @@
#include <arch/hlt.h> #include <arch/hlt.h>
#include <console/console.h> #include <console/console.h>
#ifndef __ROMCC__
#define NORETURN __attribute__((noreturn))
#else
#define NORETURN
#endif
/* Report a fatal error */ /* Report a fatal error */
void __attribute__((noreturn)) die(const char *msg) void NORETURN die(const char *msg)
{ {
print_emerg(msg); print_emerg(msg);
do { do {