diff options
author | Robert Morris <[email protected]> | 2022-08-10 06:00:57 -0400 |
---|---|---|
committer | Robert Morris <[email protected]> | 2022-08-10 06:00:57 -0400 |
commit | 7d573bae2ab70f0d0bd1807f0099c00e8f9e24f2 (patch) | |
tree | 22d29d4a7687dc05ad6785ca46a317848ca269a8 /kernel | |
parent | f4b3edf5ab211c6dfbb2befb1a4c1b6bd26e4222 (diff) | |
parent | 2462656f215822ffb3bcd854ddc68b3894058c59 (diff) | |
download | xv6-labs-7d573bae2ab70f0d0bd1807f0099c00e8f9e24f2.tar.gz xv6-labs-7d573bae2ab70f0d0bd1807f0099c00e8f9e24f2.tar.bz2 xv6-labs-7d573bae2ab70f0d0bd1807f0099c00e8f9e24f2.zip |
Merge branch 'riscv' of g.csail.mit.edu:xv6-dev into riscv
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/kalloc.c | 2 | ||||
-rw-r--r-- | kernel/printf.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kernel/kalloc.c b/kernel/kalloc.c index fa6a0ac..0699e7e 100644 --- a/kernel/kalloc.c +++ b/kernel/kalloc.c @@ -39,7 +39,7 @@ freerange(void *pa_start, void *pa_end) kfree(p); } -// Free the page of physical memory pointed at by v, +// Free the page of physical memory pointed at by pa, // which normally should have been returned by a // call to kalloc(). (The exception is when // initializing the allocator; see kinit above.) diff --git a/kernel/printf.c b/kernel/printf.c index e1347de..1a50203 100644 --- a/kernel/printf.c +++ b/kernel/printf.c @@ -109,6 +109,7 @@ printf(char *fmt, ...) break; } } + va_end(ap); if(locking) release(&pr.lock); |