* vfs_init() is now called later in the startup sequence - since no core kernel
service depends on it, it doesn't make any sense to call it that early in the game. * The VFS now has a low memory handler for vnodes as well. If there is enough memory left, it won't free any vnodes anymore. * Potential crashing bug fix: some functions did not check if the FD passed in belonged to the right type; they just assumed it had a valid vnode, but it could have had a mount structure associated as well. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15566 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -128,8 +128,6 @@ _start(kernel_args *bootKernelArgs, int currentCPU)
|
||||
generic_syscall_init();
|
||||
TRACE(("init cbuf\n"));
|
||||
cbuf_init();
|
||||
TRACE(("init VFS\n"));
|
||||
vfs_init(&sKernelArgs);
|
||||
TRACE(("init teams\n"));
|
||||
team_init(&sKernelArgs);
|
||||
TRACE(("init threads\n"));
|
||||
@@ -145,6 +143,8 @@ _start(kernel_args *bootKernelArgs, int currentCPU)
|
||||
elf_init(&sKernelArgs);
|
||||
TRACE(("init scheduler\n"));
|
||||
scheduler_init();
|
||||
TRACE(("init VFS\n"));
|
||||
vfs_init(&sKernelArgs);
|
||||
|
||||
// start a thread to finish initializing the rest of the system
|
||||
thread = spawn_kernel_thread(&main2, "main2", B_NORMAL_PRIORITY, NULL);
|
||||
|
||||
Reference in New Issue
Block a user