Changes in kernel/arch/ia64/src/mm/vhpt.c [cd3b380:e2a0d76] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia64/src/mm/vhpt.c
rcd3b380 re2a0d76 42 42 uintptr_t vhpt_set_up(void) 43 43 { 44 uintptr_t vhpt_frame =45 frame_alloc(SIZE2FRAMES(VHPT_SIZE), FRAME_ATOMIC, 0);46 if (!vhpt_ frame)44 vhpt_base = (vhpt_entry_t *) PA2KA(frame_alloc(VHPT_WIDTH - FRAME_WIDTH, 45 FRAME_ATOMIC, 0)); 46 if (!vhpt_base) 47 47 panic("Kernel configured with VHPT but no memory for table."); 48 48 49 vhpt_base = (vhpt_entry_t *) PA2KA(vhpt_frame);50 49 vhpt_invalidate_all(); 51 50 return (uintptr_t) vhpt_base; … … 84 83 void vhpt_invalidate_all() 85 84 { 86 memsetb(vhpt_base, VHPT_SIZE, 0);85 memsetb(vhpt_base, 1 << VHPT_WIDTH, 0); 87 86 } 88 87
Note:
See TracChangeset
for help on using the changeset viewer.