Remove sys_init syscall
Invoke initlog from forkret on first user process
This commit is contained in:
parent
39f8cc56d3
commit
d10d324e79
5 changed files with 7 additions and 13 deletions
6
proc.c
6
proc.c
|
@ -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).
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue