- Update romcc to version 0.27 and add more tests.

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@865 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Eric Biederman
2003-06-10 21:22:07 +00:00
parent dc18ef018d
commit 6aa31cc754
18 changed files with 6759 additions and 1052 deletions

View File

@@ -0,0 +1,37 @@
static void outb(unsigned char value, unsigned short port)
{
__builtin_outb(value, port);
}
static unsigned char inb(unsigned short port)
{
return __builtin_inb(port);
}
static void __console_tx_byte(unsigned char byte)
{
while(inb(0x3f8 + 0x05))
;
outb(byte, 0x3f8 + 0x00);
}
static void __console_tx_string(int loglevel, const char *str)
{
if (8 > loglevel) {
unsigned char ch;
while((ch = *str++) != '\0') {
__console_tx_byte(ch);
}
}
}
static void console_init(void)
{
static const char console_test[] =
"\r\n\r\nLinuxBIOS-"
"1.1.0"
".0Fallback"
" "
"Mon Jun 9 18:15:20 MDT 2003"
" starting...\r\n";
__console_tx_string(6, console_test);
}