Ignore:
File:
1 edited

Legend:

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

    r193d280c r9d58539  
    4242uintptr_t vhpt_set_up(void)
    4343{
    44         uintptr_t vhpt_frame =
    45             frame_alloc(SIZE2FRAMES(VHPT_SIZE), FRAME_ATOMIC, 0);
    46         if (!vhpt_frame)
     44        vhpt_base = frame_alloc(VHPT_WIDTH - FRAME_WIDTH,
     45            FRAME_KA | FRAME_ATOMIC);
     46        if (!vhpt_base)
    4747                panic("Kernel configured with VHPT but no memory for table.");
    48        
    49         vhpt_base = (vhpt_entry_t *) PA2KA(vhpt_frame);
    5048        vhpt_invalidate_all();
    5149        return (uintptr_t) vhpt_base;
     
    8280}
    8381
    84 void vhpt_invalidate_all(void)
     82void vhpt_invalidate_all()
    8583{
    86         memsetb(vhpt_base, VHPT_SIZE, 0);
     84        memsetb(vhpt_base, 1 << VHPT_WIDTH, 0);
    8785}
    8886
Note: See TracChangeset for help on using the changeset viewer.