aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarvin Borner2020-01-04 16:25:43 +0100
committerMarvin Borner2020-01-04 16:25:43 +0100
commit1f86d1cdb5cb6fbef224614f162f1d0be4597ac9 (patch)
tree3769acce4a0a79fba93d83e223239e70cbac1396 /src
parenta2716bd24b9f7bf7b58452735962510ce1971b52 (diff)
Added dynamic install parameter
Pure awesomeness
Diffstat (limited to 'src')
-rw-r--r--src/kernel/kernel.c8
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();