[coreboot] [commit] r6113 - trunk/src/console

repository service svn at coreboot.org
Mon Nov 22 14:07:12 CET 2010


Author: oxygene
Date: Mon Nov 22 14:07:10 2010
New Revision: 6113
URL: https://tracker.coreboot.org/trac/coreboot/changeset/6113

Log:
Workaround to get die.c to work with romcc.

Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
Acked-by: Patrick Georgi <patrick at georgi-clan.de>

Modified:
   trunk/src/console/die.c

Modified: trunk/src/console/die.c
==============================================================================
--- trunk/src/console/die.c	Mon Nov 22 13:59:36 2010	(r6112)
+++ trunk/src/console/die.c	Mon Nov 22 14:07:10 2010	(r6113)
@@ -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 {




More information about the coreboot mailing list