aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/kmain.c
diff options
context:
space:
mode:
authorAlex Auvolat <alex.auvolat@ens.fr>2015-02-12 22:35:07 +0100
committerAlex Auvolat <alex.auvolat@ens.fr>2015-02-12 22:35:07 +0100
commit9004213b4422e7a43c8ec8aac99d4ecc92553f20 (patch)
tree2e98e49e582494ce2f514fb388fa351637e5dffc /src/kernel/core/kmain.c
parent862b93742237ed959e9b8dc12a536880ea45d0cf (diff)
downloadkogata-9004213b4422e7a43c8ec8aac99d4ecc92553f20.tar.gz
kogata-9004213b4422e7a43c8ec8aac99d4ecc92553f20.zip
Begin implementation of nullfs.
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r--src/kernel/core/kmain.c4
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