Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0ff9e67 in mainline


Ignore:
Timestamp:
2010-01-10T19:00:55Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
d9ee2ea
Parents:
ccce242
Message:

Do not make the kernel region (RID 0) accessible from VRNs != 7.

Location:
kernel/arch/ia64/src/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia64/src/mm/as.c

    rccce242 r0ff9e67  
    7070                rr.word = rr_read(i);
    7171                rr.map.ve = false;              /* disable VHPT walker */
    72                 rr.map.rid = ASID2RID(as->asid, i);
     72                if (as == AS_KERNEL)
     73                        rr.map.rid = RID_INVALID;
     74                else
     75                        rr.map.rid = ASID2RID(as->asid, i);
    7376                rr.map.ps = PAGE_WIDTH;
    7477                rr_write(i, rr.word);
  • kernel/arch/ia64/src/mm/page.c

    rccce242 r0ff9e67  
    9292                rr.word = rr_read(i);
    9393                rr.map.ve = 0;          /* disable VHPT walker */
    94                 rr.map.rid = RID_KERNEL;
     94                rr.map.rid = RID_INVALID;
    9595                rr.map.ps = PAGE_WIDTH;
    9696                rr_write(i, rr.word);
Note: See TracChangeset for help on using the changeset viewer.