my comment is wrong, exec handles BSS fine
This commit is contained in:
parent
4587b35847
commit
05d66b0629
2 changed files with 16 additions and 3 deletions
3
exec.c
3
exec.c
|
|
@ -48,9 +48,6 @@ exec(char *path, char **argv)
|
|||
}
|
||||
iunlockput(ip);
|
||||
|
||||
// XXX rtm: what about the BSS? shouldn't there be some
|
||||
// bzero()ing here?
|
||||
|
||||
// Allocate and initialize stack at sz
|
||||
sz = spbottom = PGROUNDUP(sz);
|
||||
if(!(sz = allocuvm(pgdir, sz, sz + PGSIZE)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue