diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-24 02:48:20 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-03-24 02:53:55 +0100 |
commit | 6ea0920c4c99f53f6c4d784285c5aa00ba9a5b2f (patch) | |
tree | e9ab4f02117c746f86a2ade754e949f301b1950b /i386/intel/pmap.c | |
parent | d87d897ae7890ed7a58ec65c0c60a2258747e3c1 (diff) |
Fix wrap-around in pmap bootstrap
* i386/intel/pmap.c (pmap_bootstrap): Check against `va' wrap around
0xffffffff.
Diffstat (limited to 'i386/intel/pmap.c')
-rw-r--r-- | i386/intel/pmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/i386/intel/pmap.c b/i386/intel/pmap.c index 3c11d31..51ca00e 100644 --- a/i386/intel/pmap.c +++ b/i386/intel/pmap.c @@ -716,7 +716,7 @@ void pmap_bootstrap() * to allocate new kernel page tables later. * XX fix this */ - for (va = phystokv(phys_first_addr); va < kernel_virtual_end; ) + for (va = phystokv(phys_first_addr); va >= phystokv(phys_first_addr) && va < kernel_virtual_end; ) { pt_entry_t *pde = kernel_page_dir + lin2pdenum(kvtolin(va)); pt_entry_t *ptable = (pt_entry_t*)phystokv(pmap_grab_page()); |