- Timestamp:
- 2006-01-08T16:24:32Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f275cb3
- Parents:
- 59adc2b
- Location:
- genarch/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
genarch/src/acpi/acpi.c
r59adc2b r677a6d5 30 30 #include <genarch/acpi/madt.h> 31 31 #include <arch/bios/bios.h> 32 32 #include <mm/asid.h> 33 33 #include <mm/page.h> 34 34 #include <print.h> … … 80 80 static void map_sdt(struct acpi_sdt_header *sdt) 81 81 { 82 page_mapping_insert((__address) sdt, (__address) sdt, PAGE_NOT_CACHEABLE, 0);82 page_mapping_insert((__address) sdt, ASID_KERNEL, (__address) sdt, PAGE_NOT_CACHEABLE, 0); 83 83 map_structure((__address) sdt, sdt->length); 84 84 } -
genarch/src/mm/page_ht.c
r59adc2b r677a6d5 30 30 #include <mm/page.h> 31 31 #include <mm/frame.h> 32 #include <arch/mm/asid.h> 32 33 #include <arch/types.h> 33 34 #include <typedefs.h> 34 35 #include <arch/asm.h> 35 36 36 static void ht_mapping_insert(__address page, __address frame, int flags, __address root);37 static pte_t *ht_mapping_find(__address page, __address root);37 static void ht_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root); 38 static pte_t *ht_mapping_find(__address page, asid_t asid, __address root); 38 39 39 40 page_operations_t page_ht_operations = { … … 48 49 * 49 50 * @param page Virtual address of the page to be mapped. 51 * @param asid Address space to which page belongs. 50 52 * @param frame Physical address of memory frame to which the mapping is done. 51 53 * @param flags Flags to be used for mapping. 52 54 * @param root Explicit PTL0 address. 53 55 */ 54 void ht_mapping_insert(__address page, __address frame, int flags, __address root)56 void ht_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root) 55 57 { 56 58 } … … 61 63 * 62 64 * @param page Virtual page. 65 * @param asid Address space to wich page belongs. 63 66 * @param root PTL0 address if non-zero. 64 67 * 65 68 * @return NULL if there is no such mapping; entry from PTL3 describing the mapping otherwise. 66 69 */ 67 pte_t *ht_mapping_find(__address page, __address root)70 pte_t *ht_mapping_find(__address page, asid_t asid, __address root) 68 71 { 69 72 return NULL; -
genarch/src/mm/page_pt.c
r59adc2b r677a6d5 31 31 #include <mm/frame.h> 32 32 #include <arch/mm/page.h> 33 #include <arch/mm/asid.h> 33 34 #include <arch/types.h> 34 35 #include <typedefs.h> … … 36 37 #include <memstr.h> 37 38 38 static void pt_mapping_insert(__address page, __address frame, int flags, __address root);39 static pte_t *pt_mapping_find(__address page, __address root);39 static void pt_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root); 40 static pte_t *pt_mapping_find(__address page, asid_t asid, __address root); 40 41 41 42 page_operations_t page_pt_operations = { … … 50 51 * 51 52 * @param page Virtual address of the page to be mapped. 53 * @param asid Ignored. 52 54 * @param frame Physical address of memory frame to which the mapping is done. 53 55 * @param flags Flags to be used for mapping. 54 56 * @param root Explicit PTL0 address. 55 57 */ 56 void pt_mapping_insert(__address page, __address frame, int flags, __address root)58 void pt_mapping_insert(__address page, asid_t asid, __address frame, int flags, __address root) 57 59 { 58 60 pte_t *ptl0, *ptl1, *ptl2, *ptl3; … … 97 99 * 98 100 * @param page Virtual page. 101 * @param asid Ignored. 99 102 * @param root PTL0 address if non-zero. 100 103 * 101 104 * @return NULL if there is no such mapping; entry from PTL3 describing the mapping otherwise. 102 105 */ 103 pte_t *pt_mapping_find(__address page, __address root)106 pte_t *pt_mapping_find(__address page, asid_t asid, __address root) 104 107 { 105 108 pte_t *ptl0, *ptl1, *ptl2, *ptl3;
Note:
See TracChangeset
for help on using the changeset viewer.