Added interrupt and exception handling
This commit is contained in:
3
kernel.c
3
kernel.c
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "boot_info.h"
|
||||
#include "commands.h"
|
||||
#include "idt.h"
|
||||
|
||||
#define SAFE_PRINT(Boot, ...) \
|
||||
do { \
|
||||
@@ -34,6 +35,8 @@ void kmain(BootInfo *Boot)
|
||||
}
|
||||
}
|
||||
|
||||
idt_init(Boot);
|
||||
|
||||
SAFE_PRINT(Boot, L"================================================\n\r");
|
||||
SAFE_PRINT(Boot, L" Welcome to Simple UEFI Operating System!\n\r");
|
||||
SAFE_PRINT(Boot, L"================================================\n\r");
|
||||
|
||||
Reference in New Issue
Block a user