diff options
| author | kaashoek <kaashoek> | 2006-08-24 19:24:36 +0000 |
|---|---|---|
| committer | kaashoek <kaashoek> | 2006-08-24 19:24:36 +0000 |
| commit | 81d521999844f1dfa9c419463bbb8e355817062a (patch) | |
| tree | 459c6496257649bda7927db9de101253028b15d4 /proc.c | |
| parent | bcfb84b6a9077b5e035325b3396c062d1f183ac4 (diff) | |
| download | xv6-labs-2022-81d521999844f1dfa9c419463bbb8e355817062a.tar.xz xv6-labs-2022-81d521999844f1dfa9c419463bbb8e355817062a.zip | |
bug in sbrk
test malloc
Diffstat (limited to 'proc.c')
| -rw-r--r-- | proc.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -151,10 +151,9 @@ growproc(int n) oldmem = cp->mem; cp->mem = newmem; kfree(oldmem, cp->sz); + cprintf("growproc: added %d bytes to %d bytes\n", n, cp->sz); cp->sz += n; - cprintf("growproc: added %d bytes starting at address 0x%x\n", n, - newmem + cp->sz - n); - return newmem + cp->sz - n; + return cp->sz - n; } // Per-CPU process scheduler. |
