summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaheedHafez <[email protected]>2021-11-19 18:45:49 +0200
committerFrans Kaashoek <[email protected]>2022-08-09 20:27:04 -0400
commit96da76a728d5737e05f1ef19c87ec6eb740f2e8c (patch)
treecd21d8e62ec84036e7b58519d276a2d1bc40dfce
parentf33f0d8622ab13fc6f4571bf10bfab54dd81b040 (diff)
downloadxv6-labs-96da76a728d5737e05f1ef19c87ec6eb740f2e8c.tar.gz
xv6-labs-96da76a728d5737e05f1ef19c87ec6eb740f2e8c.tar.bz2
xv6-labs-96da76a728d5737e05f1ef19c87ec6eb740f2e8c.zip
fix 'kfree' comment in kalloc.c
'kfree' has a parameter named 'pa' but referenced in the comment as 'v'.
-rw-r--r--kernel/kalloc.c2
1 files changed, 1 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.)