Remove sys_init syscall

Invoke initlog from forkret on first user process
This commit is contained in:
Frans Kaashoek 2011-08-22 20:05:15 -04:00
parent 39f8cc56d3
commit d10d324e79
5 changed files with 7 additions and 13 deletions

6
proc.c
View file

@ -322,8 +322,14 @@ yield(void)
void
forkret(void)
{
static int first = 1;
// Still holding ptable.lock from scheduler.
release(&ptable.lock);
if (first) {
first = 0;
initlog();
}
// Return to "caller", actually trapret (see allocproc).
}