Changeset 482826d in mainline for genarch/src
- Timestamp:
- 2006-05-31T16:23:19Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 39031cc
- Parents:
- 343fc179
- Location:
- genarch/src/mm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/mm/as_ht.c
r343fc179 r482826d 43 43 44 44 static pte_t *ht_create(int flags); 45 static void ht_destroy(pte_t *page_table); 45 46 46 47 static void ht_lock(as_t *as, bool lock); … … 49 50 as_operations_t as_ht_operations = { 50 51 .page_table_create = ht_create, 52 .page_table_destroy = ht_destroy, 51 53 .page_table_lock = ht_lock, 52 54 .page_table_unlock = ht_unlock, … … 70 72 } 71 73 return NULL; 74 } 75 76 /** Destroy page table. 77 * 78 * Actually do nothing as the global page hash table is used. 79 * 80 * @param page_table This parameter is ignored. 81 */ 82 void ht_destroy(pte_t *page_table) 83 { 84 /* No-op. */ 72 85 } 73 86 -
genarch/src/mm/as_pt.c
r343fc179 r482826d 45 45 46 46 static pte_t *ptl0_create(int flags); 47 static void ptl0_destroy(pte_t *page_table); 47 48 48 49 static void pt_lock(as_t *as, bool lock); … … 51 52 as_operations_t as_pt_operations = { 52 53 .page_table_create = ptl0_create, 54 .page_table_destroy = ptl0_destroy, 53 55 .page_table_lock = pt_lock, 54 56 .page_table_unlock = pt_unlock … … 95 97 } 96 98 99 /** Destroy page table. 100 * 101 * Destroy PTL0, other levels are expected to be already deallocated. 102 * 103 * @param page_table Physical address of PTL0. 104 */ 105 void ptl0_destroy(pte_t *page_table) 106 { 107 frame_free(ADDR2PFN((__address) page_table)); 108 } 109 97 110 /** Lock page tables. 98 111 *
Note:
See TracChangeset
for help on using the changeset viewer.
