summaryrefslogtreecommitdiff
path: root/src/arch/amd64/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/amd64/serial.c')
-rw-r--r--src/arch/amd64/serial.c4
1 files changed, 2 insertions, 2 deletions
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);
}