diff options
Diffstat (limited to 'util/extensions/legacybios/kernel/legacybios.c')
-rw-r--r-- | util/extensions/legacybios/kernel/legacybios.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/util/extensions/legacybios/kernel/legacybios.c b/util/extensions/legacybios/kernel/legacybios.c new file mode 100644 index 0000000000..08579619ef --- /dev/null +++ b/util/extensions/legacybios/kernel/legacybios.c @@ -0,0 +1,32 @@ +/* tag: legacybios environment, executable code + * + * Copyright (C) 2003 Stefan Reinauer + * + * See the file "COPYING" for further information about + * the copyright and warranty status of this work. + */ + +#include "config.h" +#include "types.h" + +void printk(const char *fmt, ...); +void cls(void); +#ifdef DEBUG_CONSOLE +int uart_init(int port, unsigned long speed); +#endif + + +void legacybios(ucell romstart, ucell romend) +{ +#ifdef DEBUG_CONSOLE + uart_init(SERIAL_PORT, SERIAL_SPEED); + /* Clear the screen. */ + cls(); +#endif + +#ifdef DEBUG_BOOT + printk("LegacyBIOS started.\n"); +#endif + + return; +} |