diff options
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r-- | src/kernel/core/kmain.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c index 490d463..57d49e5 100644 --- a/src/kernel/core/kmain.c +++ b/src/kernel/core/kmain.c @@ -242,8 +242,6 @@ void kernel_init_stage2(void* data) { register_nullfs_driver(); fs_t *devfs = make_fs("nullfs", 0, "cd"); ASSERT(devfs != 0); - nullfs_t *devfs_n = as_nullfs(devfs); - ASSERT(devfs_n != 0); // Add kernel command line to devfs { @@ -284,7 +282,7 @@ void kernel_init_stage2(void* data) { // But since we have a nullfs, we can do it that way to prevent useless data copies : ASSERT(nullfs_add_ram_file(devfs, name, (char*)mods[i].mod_start, - len, false, FM_READ, FM_MMAP)); + len, false, FM_READ | FM_MMAP)); } // TEST : read /cmdline |