Changeset a35b458 in mainline for kernel/arch/sparc64/src/mm/sun4v/as.c
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/sun4v/as.c
r3061bc1 ra35b458 79 79 as->arch.tsb_description.reserved = 0; 80 80 as->arch.tsb_description.context = 0; 81 81 82 82 memsetb(tsb, TSB_SIZE, 0); 83 83 #endif 84 84 85 85 return EOK; 86 86 } … … 90 90 #ifdef CONFIG_TSB 91 91 frame_free(as->arch.tsb_description.tsb_base, TSB_FRAMES); 92 92 93 93 return TSB_FRAMES; 94 94 #else … … 102 102 tsb_invalidate(as, 0, (size_t) -1); 103 103 #endif 104 104 105 105 return EOK; 106 106 } … … 117 117 { 118 118 mmu_secondary_context_write(as->asid); 119 119 120 120 #ifdef CONFIG_TSB 121 121 uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH); 122 122 123 123 assert(as->arch.tsb_description.tsb_base); 124 124 uintptr_t tsb = PA2KA(as->arch.tsb_description.tsb_base); 125 125 126 126 if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) { 127 127 /* … … 134 134 dtlb_insert_mapping(tsb, KA2PA(tsb), PAGESIZE_64K, true, true); 135 135 } 136 136 137 137 __hypercall_fast2(MMU_TSB_CTXNON0, 1, KA2PA(&as->arch.tsb_description)); 138 138 #endif … … 156 156 * 157 157 */ 158 158 159 159 #ifdef CONFIG_TSB 160 160 uintptr_t base = ALIGN_DOWN(config.base, 1 << KERNEL_PAGE_WIDTH); 161 161 162 162 assert(as->arch.tsb_description.tsb_base); 163 163 164 164 uintptr_t tsb = PA2KA(as->arch.tsb_description.tsb_base); 165 165 166 166 if (!overlaps(tsb, TSB_SIZE, base, 1 << KERNEL_PAGE_WIDTH)) { 167 167 /*
Note:
See TracChangeset
for help on using the changeset viewer.