Add hlt() back into the die() function and update the comments.

Signed-off-by: Marc Jones <marc.jones@amd.com>
Acked-by: Peter Stuge <peter@stuge.se>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@550 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Marc Jones 2008-01-09 18:27:49 +00:00
parent 29d69787ea
commit ac309da3d9

View file

@ -95,18 +95,25 @@ void console_init(void)
* code over and over. That would erase the most recent POST code,
* hindering diagnosis.
*
* For now, for lack of a good alternative,
* we will continue to call console_tx_byte. We call with a NULL since
* it will clear any FIFOs in the path and won't clutter up the output,
* since NULL doesn't print a visible character on most terminal
* emulators.
* For now, for lack of a better alternative,
* we will call console_tx_byte ten times and then halt.
* Some CPU JTAG debbuggers might have problems but it is the right thing
* to do. We call with a NULL since it will clear any FIFOs in the path and
* won't clutter up the output, since NULL doesn't print a visible character
* on most terminal emulators.
*
* @param str A string to print for the error
*
*/
void die(const char *str)
{
int i;
printk(BIOS_EMERG, str);
while (1)
console_tx_byte(0, (void *)0);
while (1) {
for (i = 0; i < 10; i++)
console_tx_byte(0, (void *)0);
hlt();
}
}