summaryrefslogtreecommitdiff
path: root/kernel/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/vm.c')
-rw-r--r--kernel/vm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/vm.c b/kernel/vm.c
index d5a12a0..3c6f295 100644
--- a/kernel/vm.c
+++ b/kernel/vm.c
@@ -43,7 +43,7 @@ kvmmake(void)
// the highest virtual address in the kernel.
kvmmap(kpgtbl, TRAMPOLINE, (uint64)trampoline, PGSIZE, PTE_R | PTE_X);
- // map kernel stacks
+ // allocate and map a kernel stack for each process.
proc_mapstacks(kpgtbl);
return kpgtbl;
@@ -203,12 +203,12 @@ uvmcreate()
// for the very first process.
// sz must be less than a page.
void
-uvminit(pagetable_t pagetable, uchar *src, uint sz)
+uvmfirst(pagetable_t pagetable, uchar *src, uint sz)
{
char *mem;
if(sz >= PGSIZE)
- panic("inituvm: more than a page");
+ panic("uvmfirst: more than a page");
mem = kalloc();
memset(mem, 0, PGSIZE);
mappages(pagetable, 0, PGSIZE, (uint64)mem, PTE_W|PTE_R|PTE_X|PTE_U);