diff options
author | Myles Watson <mylesgw@gmail.com> | 2009-10-16 20:15:06 +0000 |
---|---|---|
committer | Myles Watson <mylesgw@gmail.com> | 2009-10-16 20:15:06 +0000 |
commit | 3ff6358f8e6aea0cc236544d9369875868711343 (patch) | |
tree | b3fa83620296de5cfd941bb5e53f78868b564878 /src/console/console.c | |
parent | 0364618fe86a7e3ad9b9f79105c66cbefdc64ab6 (diff) | |
download | coreboot-3ff6358f8e6aea0cc236544d9369875868711343.tar.xz |
Revert deletion that snuck in to 4794. Sorry.
Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4795 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/console/console.c')
-rw-r--r-- | src/console/console.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/console/console.c b/src/console/console.c index c176bc5d0c..008130fb63 100644 --- a/src/console/console.c +++ b/src/console/console.c @@ -81,3 +81,11 @@ void post_code(uint8_t value) outb(value, 0x80); #endif } + +/* Report a fatal error */ +void __attribute__((noreturn)) die(const char *msg) +{ + printk_emerg("%s", msg); + post_code(0xff); + while (1); /* Halt */ +} |