Changeset fc1e4f6 in mainline for generic/src/mm/page.c
- Timestamp:
- 2006-01-31T00:44:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ef67bab
- Parents:
- 6a3c9a7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/page.c
r6a3c9a7 rfc1e4f6 34 34 #include <arch/mm/page.h> 35 35 #include <arch/mm/asid.h> 36 #include <mm/as id.h>36 #include <mm/as.h> 37 37 #include <mm/frame.h> 38 38 #include <arch/types.h> … … 49 49 { 50 50 page_arch_init(); 51 page_mapping_insert( 0x0,0, 0x0, PAGE_NOT_PRESENT, 0);51 page_mapping_insert(AS_KERNEL, 0x0, 0x0, PAGE_NOT_PRESENT, 0); 52 52 } 53 53 … … 69 69 70 70 for (i = 0; i < cnt; i++) 71 page_mapping_insert( s + i*PAGE_SIZE, ASID_KERNEL, s + i*PAGE_SIZE, PAGE_NOT_CACHEABLE, 0);71 page_mapping_insert(AS_KERNEL, s + i*PAGE_SIZE, s + i*PAGE_SIZE, PAGE_NOT_CACHEABLE, 0); 72 72 73 73 } … … 78 78 * using 'flags'. Allocate and setup any missing page tables. 79 79 * 80 * @param as Address space to wich page belongs. Must be locked prior the call. 80 81 * @param page Virtual address of the page to be mapped. 81 * @param asid Address space to wich page belongs.82 82 * @param frame Physical address of memory frame to which the mapping is done. 83 83 * @param flags Flags to be used for mapping. 84 84 * @param root Explicit PTL0 address. 85 85 */ 86 void page_mapping_insert( __address page, asid_t asid, __address frame, int flags, __address root)86 void page_mapping_insert(as_t *as, __address page, __address frame, int flags, __address root) 87 87 { 88 88 ASSERT(page_operations); 89 89 ASSERT(page_operations->mapping_insert); 90 90 91 page_operations->mapping_insert( page, asid, frame, flags, root);91 page_operations->mapping_insert(as, page, frame, flags, root); 92 92 } 93 93 … … 96 96 * Find mapping for virtual page. 97 97 * 98 * @param as Address space to wich page belongs must be locked prior the call. 98 99 * @param page Virtual page. 99 * @param asid Address space to wich page belongs.100 100 * @param root PTL0 address if non-zero. 101 101 * 102 102 * @return NULL if there is no such mapping; requested mapping otherwise. 103 103 */ 104 pte_t *page_mapping_find( __address page, asid_t asid, __address root)104 pte_t *page_mapping_find(as_t *as, __address page, __address root) 105 105 { 106 106 ASSERT(page_operations); 107 107 ASSERT(page_operations->mapping_find); 108 108 109 return page_operations->mapping_find( page, asid, root);109 return page_operations->mapping_find(as, page, root); 110 110 }
Note:
See TracChangeset
for help on using the changeset viewer.