Changeset bd48f4c in mainline for kernel/arch/sparc64/include/mm/sun4v/tlb.h
- Timestamp:
- 2010-07-12T10:53:30Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bd11d3e
- Parents:
- c40e6ef (diff), bee2d4c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/mm/sun4v/tlb.h
rc40e6ef rbd48f4c 43 43 44 44 #include <arch/mm/tte.h> 45 #include < print.h>45 #include <trace.h> 46 46 #include <arch/mm/mmu.h> 47 47 #include <arch/mm/page.h> … … 88 88 * @return Current value of Primary Context Register. 89 89 */ 90 static inline uint64_t mmu_primary_context_read(void)90 NO_TRACE static inline uint64_t mmu_primary_context_read(void) 91 91 { 92 92 return asi_u64_read(ASI_PRIMARY_CONTEXT_REG, VA_PRIMARY_CONTEXT_REG); 93 93 } 94 94 95 95 /** Write MMU Primary Context Register. 96 96 * 97 97 * @param v New value of Primary Context Register. 98 98 */ 99 static inline void mmu_primary_context_write(uint64_t v)99 NO_TRACE static inline void mmu_primary_context_write(uint64_t v) 100 100 { 101 101 asi_u64_write(ASI_PRIMARY_CONTEXT_REG, VA_PRIMARY_CONTEXT_REG, v); 102 102 } 103 103 104 104 /** Read MMU Secondary Context Register. 105 105 * 106 106 * @return Current value of Secondary Context Register. 107 107 */ 108 static inline uint64_t mmu_secondary_context_read(void)108 NO_TRACE static inline uint64_t mmu_secondary_context_read(void) 109 109 { 110 110 return asi_u64_read(ASI_SECONDARY_CONTEXT_REG, VA_SECONDARY_CONTEXT_REG); 111 111 } 112 112 113 113 /** Write MMU Secondary Context Register. 114 114 * 115 115 * @param v New value of Secondary Context Register. 116 116 */ 117 static inline void mmu_secondary_context_write(uint64_t v)117 NO_TRACE static inline void mmu_secondary_context_write(uint64_t v) 118 118 { 119 119 asi_u64_write(ASI_SECONDARY_CONTEXT_REG, VA_SECONDARY_CONTEXT_REG, v); … … 126 126 * @param mmu_flag MMU_FLAG_DTLB, MMU_FLAG_ITLB or a combination of both 127 127 */ 128 static inline void mmu_demap_ctx(int context, int mmu_flag) {128 NO_TRACE static inline void mmu_demap_ctx(int context, int mmu_flag) { 129 129 __hypercall_fast4(MMU_DEMAP_CTX, 0, 0, context, mmu_flag); 130 130 } … … 137 137 * @param mmu_flag MMU_FLAG_DTLB, MMU_FLAG_ITLB or a combination of both 138 138 */ 139 static inline void mmu_demap_page(uintptr_t vaddr, int context, int mmu_flag) {139 NO_TRACE static inline void mmu_demap_page(uintptr_t vaddr, int context, int mmu_flag) { 140 140 __hypercall_fast5(MMU_DEMAP_PAGE, 0, 0, vaddr, context, mmu_flag); 141 141 }
Note:
See TracChangeset
for help on using the changeset viewer.