aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/kmain.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2015-03-09 23:34:46 +0100
committerAlex Auvolat <alex@adnab.me>2015-03-09 23:34:46 +0100
commit011d99fc5f90b1e2b51f7b96688bdcbbb944e104 (patch)
tree20a2a03ef168a09185b77fbea04adfeefc1d99bf /src/kernel/core/kmain.c
parente499d74b6f0b57f9a11486c346dbc335e4f8433d (diff)
downloadkogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.tar.gz
kogata-011d99fc5f90b1e2b51f7b96688bdcbbb944e104.zip
VESA mode setting ; displays kogata logo!
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r--src/kernel/core/kmain.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c
index d23df1a..96c3cc1 100644
--- a/src/kernel/core/kmain.c
+++ b/src/kernel/core/kmain.c
@@ -222,7 +222,10 @@ fs_t *setup_iofs(multiboot_info_t *mbd) {
}
// Populate iofs with files for kernel modules
- ASSERT(fs_create(iofs, "/mod", FT_DIR));
+ const char *dirs[] = { "/mod", "/disk", "/input", "/display", 0 };
+ for (int i = 0; dirs[i] != 0; i++) {
+ ASSERT(fs_create(iofs, dirs[i], FT_DIR));
+ }
multiboot_module_t *mods = (multiboot_module_t*)mbd->mods_addr;
for (unsigned i = 0; i < mbd->mods_count; i++) {
char* modname = (char*)mods[i].string;