Oops, dropped a paren
This commit is contained in:
parent
2eb214c9db
commit
6f3ca059f2
2
vm.c
2
vm.c
|
@ -77,7 +77,7 @@ mappages(pde_t *pgdir, void *va, uint size, uint pa,
|
|||
a = (char*)PGROUNDDOWN((uint)va);
|
||||
last = (char*)PGROUNDDOWN(((uint)va) + size - 1);
|
||||
for(;;){
|
||||
if((pte = walkpgdir(pgdir, a, alloc) == 0)
|
||||
if((pte = walkpgdir(pgdir, a, alloc)) == 0)
|
||||
return -1;
|
||||
if(*pte & PTE_P)
|
||||
panic("remap");
|
||||
|
|
Loading…
Reference in a new issue