From 3a3d50d7eb0f4fdbb9beaf16bacfa98689cc448c Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 29 Apr 2021 23:59:48 +0200 Subject: Alright! --- kernel/main.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'kernel/main.c') 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 #include #include #include @@ -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); -- cgit v1.2.3