* add readline()
* add fatal() Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Jordan Crouse <jordan.crouse@amd.com> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3522 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
0e4671e305
commit
6e51ceeb2b
@ -101,3 +101,15 @@ u8 hex2bin(u8 h)
|
||||
('A' <= h && h <= 'F') ? (h - 'A' + 10) : \
|
||||
('a' <= h && h <= 'f') ? (h - 'a' + 10) : 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Enters HALT state, after printing msg
|
||||
*
|
||||
* @param msg message to print
|
||||
*/
|
||||
void fatal(const char *msg)
|
||||
{
|
||||
printf("%s",msg);
|
||||
halt();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user