diff options
author | Marvin Borner | 2020-01-04 16:25:43 +0100 |
---|---|---|
committer | Marvin Borner | 2020-01-04 16:25:43 +0100 |
commit | 1f86d1cdb5cb6fbef224614f162f1d0be4597ac9 (patch) | |
tree | 3769acce4a0a79fba93d83e223239e70cbac1396 /src/kernel/kernel.c | |
parent | a2716bd24b9f7bf7b58452735962510ce1971b52 (diff) |
Added dynamic install parameter
Pure awesomeness
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 8 |
1 files changed, 6 insertions, 2 deletions
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 <kernel/fs/install.h> + if (boot_drive_id == 0xE0) + install_melvix(); +#endif info("Switching to user mode..."); syscalls_install(); |