Major restructure
This commit is contained in:
parent
0562c2fe5a
commit
c52e19de83
25 changed files with 574 additions and 188 deletions
8
kern/libkern/uart.c
Normal file
8
kern/libkern/uart.c
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
/* QEMU memory maps a UART device here. */
|
||||
#define UART_BASE ((volatile char *)0x10000000)
|
||||
|
||||
void uart_putc(char c) { *UART_BASE = c; }
|
||||
|
||||
void uart_puts(const char *s) {
|
||||
while (*s) uart_putc(*s++);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue