mirror of
https://github.com/RGBCube/serenity
synced 2025-05-15 15:24:57 +00:00
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().
This commit is contained in:
parent
8454d3e184
commit
4320c5fd58
5 changed files with 115 additions and 28 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue