From 94657a7b471fe56e9cb29820aadf5686b025a942 Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Wed, 14 Jun 2023 20:49:23 +0300 Subject: [PATCH] OUTB implementation --- kernel.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/kernel.c b/kernel.c index f917e01..6fc31c9 100644 --- a/kernel.c +++ b/kernel.c @@ -1,11 +1,9 @@ #include "multiboot.h" #include "vga.h" -/* -static inline void outb(unsigned int port, unsigned char val) { +static inline void outb(unsigned short port, unsigned char val) { asm volatile ("outb %0, %1" : : "a"(val), "Nd"(port) : "memory"); } -*/ char* itoa(int value, int base) { char* result;