From 192a4ccd6bbc2239f047f782a05e888990011e51 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 1 Feb 2024 12:48:55 -0500 Subject: acpi, fix mboot memory map, fix kalloc, fix virtalloc node allocator, add kprintf, other changes --- src/arch/amd64/serial.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/amd64/serial.c') diff --git a/src/arch/amd64/serial.c b/src/arch/amd64/serial.c index 85cd408..d63d9dd 100644 --- a/src/arch/amd64/serial.c +++ b/src/arch/amd64/serial.c @@ -16,7 +16,7 @@ int serial_init(void) { // outb(port + 4, 0x0B); // TODO copied this from osdev wiki but i don't think you need it here outb(PORT + 4, 0x1E); // set in loopback mode for test outb(PORT + 0, 0xAE); // test by sending 0xAE - + uint8_t response = inb(PORT + 0); if(response != 0xAE) { // TODO panic here? @@ -40,7 +40,7 @@ void serial_out(uint8_t ch) { outb(PORT, ch); } -void serial_out_str(char *str) { +void serial_out_str(const char *str) { for(; *str != '\0'; str++) { serial_out(*str); } -- cgit v1.2.3-freya