diff options
author | Austin Clements <[email protected]> | 2011-09-02 14:37:42 -0400 |
---|---|---|
committer | Austin Clements <[email protected]> | 2011-09-02 14:37:42 -0400 |
commit | 6f3ca059f22703c212ac1ea59ea298eb1efb6743 (patch) | |
tree | 81dd2e0d83a00c5401659580752da71ea9c95dd7 | |
parent | 2eb214c9dbdd7b7b90997531c171196fc3bd0e9f (diff) | |
download | xv6-labs-6f3ca059f22703c212ac1ea59ea298eb1efb6743.tar.gz xv6-labs-6f3ca059f22703c212ac1ea59ea298eb1efb6743.tar.bz2 xv6-labs-6f3ca059f22703c212ac1ea59ea298eb1efb6743.zip |
Oops, dropped a paren
-rw-r--r-- | vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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"); |