diff options
Diffstat (limited to 'src/kernel/kernel.c')
-rw-r--r-- | src/kernel/kernel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kernel/kernel.c b/src/kernel/kernel.c index c2f0972..40db307 100644 --- a/src/kernel/kernel.c +++ b/src/kernel/kernel.c @@ -70,13 +70,13 @@ void kernel_main(uint32_t magic, uint32_t multiboot_address, uint32_t esp) struct fs_node *test = (struct fs_node *)kmalloc(sizeof(struct fs_node)); strcpy(test->name, "/etc/test"); - ext2_root->open(test); + fs_open(test); uint32_t size = ((struct ext2_file *)test->impl)->inode.size; char buf[size]; - ext2_root->read(test, 0, size, buf); + fs_read(test, 0, size, buf); buf[size - 1] = '\0'; log("Content of /etc/test: %s", buf); - ext2_root->close(test); + fs_close(test); dev_stdin(); dev_stdout(); |