From 1f86d1cdb5cb6fbef224614f162f1d0be4597ac9 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Sat, 4 Jan 2020 16:25:43 +0100 Subject: Added dynamic install parameter Pure awesomeness --- src/kernel/kernel.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index 412a289..cce1e55 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -50,8 +50,12 @@ void kernel_main() info("Total memory found: %dMiB", (memory_get_all() >> 10) + 1); uint8_t boot_drive_id = (uint8_t) (*((uint8_t *) 0x9000)); - // if (boot_drive_id == 0xE0) { - // install_melvix(); + +#ifdef INSTALL_MELVIX +#include + if (boot_drive_id == 0xE0) + install_melvix(); +#endif info("Switching to user mode..."); syscalls_install(); -- cgit v1.2.3