kprocs dont share memory with up, see: http://9fans.net/archive/2011/05/159
This commit is contained in:
parent
2def26ce10
commit
d18a4568a8
1 changed files with 2 additions and 1 deletions
|
@ -1378,13 +1378,14 @@ kproc(char *name, void (*func)(void *), void *arg)
|
||||||
memset(p->time, 0, sizeof(p->time));
|
memset(p->time, 0, sizeof(p->time));
|
||||||
p->time[TReal] = MACHP(0)->ticks;
|
p->time[TReal] = MACHP(0)->ticks;
|
||||||
ready(p);
|
ready(p);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* since the bss/data segments are now shareable,
|
* since the bss/data segments are now shareable,
|
||||||
* any mmu info about this process is now stale
|
* any mmu info about this process is now stale
|
||||||
* and has to be discarded.
|
* and has to be discarded.
|
||||||
*/
|
|
||||||
p->newtlb = 1;
|
p->newtlb = 1;
|
||||||
flushmmu();
|
flushmmu();
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue