git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: a better boot command line parser
[lunaix-os.git]
/
lunaix-os
/
kernel
/
boot_helper.c
diff --git
a/lunaix-os/kernel/boot_helper.c
b/lunaix-os/kernel/boot_helper.c
index 1383f60af7290181a01d8524b9485810c0201fcc..d50e471afedf868eebf78f78eb026038f6d985d8 100644
(file)
--- a/
lunaix-os/kernel/boot_helper.c
+++ b/
lunaix-os/kernel/boot_helper.c
@@
-4,6
+4,7
@@
#include <lunaix/mm/pmm.h>
#include <lunaix/mm/vmm.h>
#include <lunaix/spike.h>
#include <lunaix/mm/pmm.h>
#include <lunaix/mm/vmm.h>
#include <lunaix/spike.h>
+#include <lunaix/kcmd.h>
#include <sys/mm/mempart.h>
/**
#include <sys/mm/mempart.h>
/**
@@
-88,4
+89,13
@@
boot_cleanup()
vmm_del_mapping(VMS_SELF, (ptr_t)i);
pmm_free_page(KERNEL_PID, (ptr_t)i);
}
vmm_del_mapping(VMS_SELF, (ptr_t)i);
pmm_free_page(KERNEL_PID, (ptr_t)i);
}
+}
+
+void
+boot_parse_cmdline(struct boot_handoff* bhctx) {
+ if (!bhctx->kexec.len) {
+ return;
+ }
+
+ kcmd_parse_cmdline(bhctx->kexec.cmdline);
}
\ No newline at end of file
}
\ No newline at end of file