From 5fdd893728a6506cd7980b85b9862523e841877d Mon Sep 17 00:00:00 2001 From: Joursoir Date: Mon, 10 Oct 2022 18:50:00 +0300 Subject: pass multiboot information to the kernel --- kernel/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'kernel') diff --git a/kernel/main.c b/kernel/main.c index 5b146bb..82cb175 100644 --- a/kernel/main.c +++ b/kernel/main.c @@ -1,3 +1,4 @@ +#include "multiboot.h" #include "video/console/vgacon.h" #include "gdt.h" @@ -9,7 +10,8 @@ #if !defined(__i386__) #error "This kernel needs to be compiled with a ix86-elf compiler" #endif -void kernel_main(void) + +void kernel_main(uint32_t magic, multiboot_info_t *multiboot) { init_segmentation(); -- cgit v1.2.3-18-g5258