more sbrk fixes

This commit is contained in:
Robert Morris 2019-06-04 11:31:50 -04:00
parent 0e131b2263
commit cff3ce6e04
5 changed files with 22 additions and 23 deletions

4
proc.c
View file

@ -500,8 +500,6 @@ wakeup(void *chan)
release(&ptable.lock);
}
#if 0
// Kill the process with the given pid.
// Process won't exit until it returns
// to user space (see trap in trap.c).
@ -525,8 +523,6 @@ kill(int pid)
return -1;
}
#endif
// Copy to either a user address, or kernel address,
// depending on usr_dst.
// Returns 0 on success, -1 on error.