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:
parent
6e9ab97106
commit
394965dd64
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue