rayddteam

Untitled

Oct 1st, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. Index: machdep.c
  2. ===================================================================
  3. --- machdep.c (revision 255634)
  4. +++ machdep.c (working copy)
  5. @@ -1390,8 +1390,9 @@
  6. pmap_curmaxkvaddr = l2_start + (l2size - 1) * L1_S_SIZE;
  7.  
  8. /* Map kernel code and data */
  9. - pmap_map_chunk(l1pagetable, KERNVIRTADDR, KERNPHYSADDR,
  10. - (((uint32_t)(lastaddr) - KERNVIRTADDR) + PAGE_MASK) & ~PAGE_MASK,
  11. + pmap_map_chunk(l1pagetable, rounddown2(KERNVIRTADDR, 0x100000),
  12. + rounddown2(KERNPHYSADDR, 0x100000), (((uint32_t)(lastaddr) -
  13. + rounddown2(KERNVIRTADDR, 0x100000)) + PAGE_MASK) & ~PAGE_MASK,
  14. VM_PROT_READ|VM_PROT_WRITE, PTE_CACHE);
Advertisement
Add Comment
Please, Sign In to add comment