Changeset 7f1c620 in mainline for arch/ia64/src/mm/vhpt.c
- Timestamp:
- 2006-07-04T17:17:56Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0ffa3ef5
- Parents:
- 991779c5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/ia64/src/mm/vhpt.c
r991779c5 r7f1c620 41 41 static vhpt_entry_t* vhpt_base; 42 42 43 __addressvhpt_set_up(void)43 uintptr_t vhpt_set_up(void) 44 44 { 45 45 vhpt_base = frame_alloc(VHPT_WIDTH-FRAME_WIDTH,FRAME_KA | FRAME_ATOMIC); … … 47 47 panic("Kernel configured with VHPT but no memory for table."); 48 48 vhpt_invalidate_all(); 49 return ( __address) vhpt_base;49 return (uintptr_t) vhpt_base; 50 50 } 51 51 52 52 53 void vhpt_mapping_insert( __addressva, asid_t asid, tlb_entry_t entry)53 void vhpt_mapping_insert(uintptr_t va, asid_t asid, tlb_entry_t entry) 54 54 { 55 55 region_register rr_save, rr; 56 56 index_t vrn; 57 57 rid_t rid; 58 __u64tag;58 uint64_t tag; 59 59 60 60 vhpt_entry_t *ventry; … … 85 85 void vhpt_invalidate_all() 86 86 { 87 memsetb(( __address)vhpt_base,1<<VHPT_WIDTH,0);87 memsetb((uintptr_t)vhpt_base,1<<VHPT_WIDTH,0); 88 88 } 89 89
Note:
See TracChangeset
for help on using the changeset viewer.