proc: separate from sched

This commit is contained in:
Matheus
2024-09-21 22:43:16 -03:00
parent 77c39fdda3
commit cc6477d46d
19 changed files with 430 additions and 383 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ syscallret_t syscall_chroot(context_t *, char *upath) {
return ret;
}
vnode_t *ref = path[0] == '/' ? sched_getroot() : sched_getcwd();
vnode_t *ref = path[0] == '/' ? proc_get_root() : proc_get_cwd();
vnode_t *new = NULL;
ret.errno = vfs_lookup(&new, ref, path, NULL, 0);
@@ -45,7 +45,7 @@ syscallret_t syscall_chroot(context_t *, char *upath) {
goto cleanup;
}
sched_setroot(new);
proc_set_root(new);
ret.ret = 0;
cleanup: