Changeset c52ed6b in mainline for arch/sparc64/include/mm/tlb.h
- Timestamp:
- 2005-12-12T23:55:08Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5bb8e45
- Parents:
- 0bd4f56d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
arch/sparc64/include/mm/tlb.h
r0bd4f56d rc52ed6b 32 32 #include <arch/mm/tte.h> 33 33 #include <arch/asm.h> 34 #include <arch/barrier.h> 34 35 #include <arch/types.h> 35 36 #include <typedefs.h> … … 98 99 }; 99 100 typedef union tlb_tag_read_reg tlb_tag_read_reg_t; 101 typedef union tlb_tag_read_reg tlb_tag_access_reg_t; 100 102 101 103 /** Read IMMU TLB Data Access Register. … … 135 137 * @return Current value of specified IMMU TLB Tag Read Register. 136 138 */ 137 static inline __u64 itlb_tag_read (index_t entry)139 static inline __u64 itlb_tag_read_read(index_t entry) 138 140 { 139 141 tlb_tag_read_addr_t tag; … … 150 152 * @return Current value of specified DMMU TLB Tag Read Register. 151 153 */ 152 static inline __u64 dtlb_tag_read (index_t entry)154 static inline __u64 dtlb_tag_read_read(index_t entry) 153 155 { 154 156 tlb_tag_read_addr_t tag; … … 159 161 } 160 162 163 /** Write IMMU TLB Tag Access Register. 164 * 165 * @param v Value to be written. 166 */ 167 static inline void itlb_tag_access_write(__u64 v) 168 { 169 asi_u64_write(ASI_IMMU, VA_IMMU_TAG_ACCESS, v); 170 flush(); 171 } 172 173 /** Write DMMU TLB Tag Access Register. 174 * 175 * @param v Value to be written. 176 */ 177 static inline void dtlb_tag_access_write(__u64 v) 178 { 179 asi_u64_write(ASI_DMMU, VA_DMMU_TAG_ACCESS, v); 180 flush(); 181 } 182 183 /** Write IMMU TLB Data in Register. 184 * 185 * @param v Value to be written. 186 */ 187 static inline void itlb_data_in_write(__u64 v) 188 { 189 asi_u64_write(ASI_ITLB_DATA_IN_REG, 0, v); 190 flush(); 191 } 192 193 /** Write DMMU TLB Data in Register. 194 * 195 * @param v Value to be written. 196 */ 197 static inline void dtlb_data_in_write(__u64 v) 198 { 199 asi_u64_write(ASI_DTLB_DATA_IN_REG, 0, v); 200 flush(); 201 } 202 161 203 #endif
Note:
See TracChangeset
for help on using the changeset viewer.