diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-02 09:50:18 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-02 09:53:42 +0200 |
commit | 4320c5fd58a3c313bc3551b266de725b51a9732b (patch) | |
tree | 50761f16757dc2c832b5b344735c92d36867cc50 /Kernel/init.cpp | |
parent | 8454d3e184499feec4b7c623191087b110fd9728 (diff) | |
download | serenity-4320c5fd58a3c313bc3551b266de725b51a9732b.zip |
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().
Diffstat (limited to 'Kernel/init.cpp')
-rw-r--r-- | Kernel/init.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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 <Kernel/Net/E1000NetworkAdapter.h> #include <Kernel/Net/NetworkTask.h> #include <Kernel/Devices/DebugLogDevice.h> +#include <Kernel/Multiboot.h> //#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(); |