kernel: add boot argument parsing

This commit is contained in:
2023-12-27 17:34:59 +00:00
parent b8934d220c
commit 53e756eca0
3 changed files with 142 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#include <socks/pmap.h>
#include <socks/device.h>
#include <socks/arg.h>
#include <socks/tty.h>
#include <socks/kext.h>
#include <socks/clock.h>
@@ -104,6 +105,8 @@ int ml_init(uintptr_t arg)
{
multiboot_info_t *mb = (multiboot_info_t *)arg;
parse_cmdline(PTR32(mb->cmdline));
init_bootfb(mb);
bootstrap_cpu_init();