aboutsummaryrefslogtreecommitdiff
path: root/kernel/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/main.c')
-rw-r--r--kernel/main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kernel/main.c b/kernel/main.c
index 37dd2da..023190a 100644
--- a/kernel/main.c
+++ b/kernel/main.c
@@ -1,6 +1,5 @@
// MIT License, Copyright (c) 2020 Marvin Borner
-#include <boot.h>
#include <cpu.h>
#include <fs.h>
#include <gdt.h>
@@ -21,15 +20,15 @@
PROTECTED extern u32 __stack_chk_guard;
PROTECTED u32 __stack_chk_guard;
-int kernel_main(u32 magic, u32 addr); // Decl
-int kernel_main(u32 magic, u32 addr)
+int kernel_main(u32 magic, u32 addr, u32 esp); // Decl
+int kernel_main(u32 magic, u32 addr, u32 esp)
{
// Serial connection
serial_install();
serial_print("\nKernel was compiled at " __TIME__ " on " __DATE__ "\n");
serial_print("Serial connected!\n");
- gdt_install();
+ gdt_install(esp);
multiboot_init(magic, addr);