Init struct + freeing a bit of kmain()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user