summaryrefslogtreecommitdiff
path: root/kalloc.c
diff options
context:
space:
mode:
authorrsc <rsc>2006-09-07 14:12:30 +0000
committerrsc <rsc>2006-09-07 14:12:30 +0000
commit31085bb4166c18b3dee059160d64b4edd7c5e2f4 (patch)
treed3b166a2c39f77e06e7104659b537521282f9260 /kalloc.c
parent7e019461c8bf0afbe73f959ca3394cce832501fd (diff)
downloadxv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.tar.gz
xv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.tar.bz2
xv6-labs-31085bb4166c18b3dee059160d64b4edd7c5e2f4.zip
more comments
Diffstat (limited to 'kalloc.c')
-rw-r--r--kalloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kalloc.c b/kalloc.c
index 34a55eb..7d3ca0c 100644
--- a/kalloc.c
+++ b/kalloc.c
@@ -40,6 +40,10 @@ kinit(void)
kfree(start, mem * PAGE);
}
+// Free the len bytes of memory pointed at by cp,
+// which normally should have been returned by a
+// call to kalloc(cp). (The exception is when
+// initializing the allocator; see kinit above.)
void
kfree(char *cp, int len)
{