forkret first memory model
This commit is contained in:
parent
d2b2dff749
commit
348cf7fee4
1 changed files with 4 additions and 1 deletions
|
@ -523,8 +523,11 @@ forkret(void)
|
|||
// File system initialization must be run in the context of a
|
||||
// regular process (e.g., because it calls sleep), and thus cannot
|
||||
// be run from main().
|
||||
first = 0;
|
||||
fsinit(ROOTDEV);
|
||||
|
||||
first = 0;
|
||||
// ensure other cores see first=0.
|
||||
__sync_synchronize();
|
||||
}
|
||||
|
||||
usertrapret();
|
||||
|
|
Loading…
Add table
Reference in a new issue