modified some syscall code in rlibc, fs stuff
This commit is contained in:
12
kernel/vfs.c
Normal file
12
kernel/vfs.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "vfs.h"
|
||||
#include "lib/memory.h"
|
||||
#include <string.h>
|
||||
|
||||
vfs_node_t* root = NULL;
|
||||
|
||||
void vfs_create_root() {
|
||||
root = kalloc(sizeof(vfs_node_t));
|
||||
memset((uint8_t*)root->name, 0, 128);
|
||||
memcpy("root", root->name, 4);
|
||||
root->flags |= VFS_DIRECTORY;
|
||||
}
|
||||
Reference in New Issue
Block a user