From 4320c5fd58a3c313bc3551b266de725b51a9732b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 2 Jun 2019 09:50:18 +0200 Subject: Kernel: Make better use of the multiboot info. Define the multiboot info struct properly so we don't have to grab at byte offsets in the memory access checker code. Also print kernel command line in init(). --- Kernel/init.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Kernel/init.cpp') diff --git a/Kernel/init.cpp b/Kernel/init.cpp index 32f7a2c00a..5f9e0c3f06 100644 --- a/Kernel/init.cpp +++ b/Kernel/init.cpp @@ -25,6 +25,7 @@ #include #include #include +#include //#define STRESS_TEST_SPAWNING @@ -94,9 +95,13 @@ VFS* vfs; ASSERT_NOT_REACHED(); } +extern "C" { +multiboot_info_t* multiboot_info_ptr; +} + extern "C" [[noreturn]] void init() { - cli(); + kprintf("Kernel command line: '%s'\n", multiboot_info_ptr->cmdline); sse_init(); -- cgit v1.2.3