only need a page
This commit is contained in:
parent
5c596bb3a7
commit
efb01c1dc0
1 changed files with 1 additions and 1 deletions
2
main.c
2
main.c
|
@ -127,7 +127,7 @@ process0()
|
||||||
iunlock(p0->cwd);
|
iunlock(p0->cwd);
|
||||||
|
|
||||||
// dummy user memory to make copyproc() happy
|
// dummy user memory to make copyproc() happy
|
||||||
p0->sz = 4 * PAGE;
|
p0->sz = PAGE;
|
||||||
p0->mem = kalloc(p0->sz);
|
p0->mem = kalloc(p0->sz);
|
||||||
|
|
||||||
// fake a trap frame as if a user process had made a system
|
// fake a trap frame as if a user process had made a system
|
||||||
|
|
Loading…
Reference in a new issue