Init struct + freeing a bit of kmain()

This commit is contained in:
2026-03-08 13:21:19 +01:00
parent 5e9c582833
commit 42c7a55d3f
9 changed files with 71 additions and 33 deletions

View File

@@ -7,6 +7,8 @@
#include <kernel.h>
#include "serial.h"
extern struct init_status init;
void outb(int port, unsigned char data)
{
__asm__ __volatile__("outb %%al, %%dx" :: "a" (data),"d" (port));
@@ -43,6 +45,7 @@ int serial_init()
outb(PORT + 4, 0x0F);
DEBUG("*** Welcome to PepperOS! ***");
init.serial = true;
return 0;
}