a few name changes in panic msg
This commit is contained in:
parent
8c12928cc5
commit
47c9721d78
|
@ -133,9 +133,9 @@ kvmpa(uint64 va)
|
|||
|
||||
pte = walk(kernel_pagetable, va, 0);
|
||||
if(pte == 0)
|
||||
panic("kernelpa");
|
||||
panic("kvmpa");
|
||||
if((*pte & PTE_V) == 0)
|
||||
panic("kernelpa");
|
||||
panic("kvmpa");
|
||||
pa = PTE2PA(*pte);
|
||||
return pa+off;
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ uvmclear(pagetable_t pagetable, uint64 va)
|
|||
|
||||
pte = walk(pagetable, va, 0);
|
||||
if(pte == 0)
|
||||
panic("clearpteu");
|
||||
panic("uvmclear");
|
||||
*pte &= ~PTE_U;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue