Changes in kernel/arch/sparc64/src/mm/sun4v/tlb.c [b2fa1204:cade9c1] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/sun4v/tlb.c
rb2fa1204 rcade9c1 208 208 209 209 /** ITLB miss handler. */ 210 void fast_instruction_access_mmu_miss( sysarg_t unused, istate_t *istate)210 void fast_instruction_access_mmu_miss(unsigned int tt, istate_t *istate) 211 211 { 212 212 uintptr_t va = ALIGN_DOWN(istate->tpc, PAGE_SIZE); … … 239 239 * low-level, assembly language part of the fast_data_access_mmu_miss handler. 240 240 * 241 * @param page_and_ctx A 64-bit value describing the fault. The most 242 * significant 51 bits of the value contain the virtual 243 * address which caused the fault truncated to the page 244 * boundary. The least significant 13 bits of the value 245 * contain the number of the context in which the fault 246 * occurred. 241 * @param tt Trap type. 247 242 * @param istate Interrupted state saved on the stack. 248 243 */ 249 void fast_data_access_mmu_miss(u int64_t page_and_ctx, istate_t *istate)244 void fast_data_access_mmu_miss(unsigned int tt, istate_t *istate) 250 245 { 251 246 pte_t *t; 252 uintptr_t va = DMISS_ADDRESS( page_and_ctx);253 uint16_t ctx = DMISS_CONTEXT( page_and_ctx);247 uintptr_t va = DMISS_ADDRESS(istate->tlb_tag_access); 248 uint16_t ctx = DMISS_CONTEXT(istate->tlb_tag_access); 254 249 as_t *as = AS; 255 250 … … 288 283 /** DTLB protection fault handler. 289 284 * 290 * @param page_and_ctx A 64-bit value describing the fault. The most 291 * significant 51 bits of the value contain the virtual 292 * address which caused the fault truncated to the page 293 * boundary. The least significant 13 bits of the value 294 * contain the number of the context in which the fault 295 * occurred. 285 * @param tt Trap type. 296 286 * @param istate Interrupted state saved on the stack. 297 287 */ 298 void fast_data_access_protection(u int64_t page_and_ctx, istate_t *istate)288 void fast_data_access_protection(unsigned int tt, istate_t *istate) 299 289 { 300 290 pte_t *t; 301 uintptr_t va = DMISS_ADDRESS( page_and_ctx);302 uint16_t ctx = DMISS_CONTEXT( page_and_ctx);291 uintptr_t va = DMISS_ADDRESS(istate->tlb_tag_access); 292 uint16_t ctx = DMISS_CONTEXT(istate->tlb_tag_access); 303 293 as_t *as = AS; 304 294
Note:
See TracChangeset
for help on using the changeset viewer.