projects
/
coreboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0364618
)
Revert deletion that snuck in to 4794. Sorry.
author
Myles Watson
<mylesgw@gmail.com>
Fri, 16 Oct 2009 20:15:06 +0000
(20:15 +0000)
committer
Myles Watson
<mylesgw@gmail.com>
Fri, 16 Oct 2009 20:15:06 +0000
(20:15 +0000)
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
src/console/console.c
patch
|
blob
|
history
diff --git
a/src/console/console.c
b/src/console/console.c
index c176bc5d0c248091e2b7bb59eab2e0d0d2a21418..008130fb639a0bb3eac133e7e3db52ffe4cbb365 100644
(file)
--- 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 */
+}