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 <[email protected]> Acked-by: Patrick Georgi <[email protected]> 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 { -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

