rpi: Flush serial on cleanup

* Wait for transmit fifo to empty on serial cleanup
* Serial cleanup on platform exit
This commit is contained in:
Alexander von Gluck IV
2012-05-16 04:50:29 -05:00
parent 91161d1d6f
commit ce077d96cb
2 changed files with 4 additions and 2 deletions
@@ -67,7 +67,9 @@ serial_enable(void)
extern "C" void extern "C" void
serial_cleanup(void) serial_cleanup(void)
{ {
#warning IMPLEMENT serial_cleanup // Transmit the last of our fifo
gLoaderUART.FlushTx();
gLoaderUART.Disable();
} }
@@ -92,7 +92,7 @@ platform_start_kernel(void)
void void
platform_exit(void) platform_exit(void)
{ {
#warning IMPLEMENT platform_exit serial_cleanup();
} }