Changes in kernel/arch/sparc64/src/mm/sun4v/tlb.c [cade9c1:b2fa1204] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/mm/sun4v/tlb.c
rcade9c1 rb2fa1204 208 208 209 209 /** ITLB miss handler. */ 210 void fast_instruction_access_mmu_miss( unsigned int tt, istate_t *istate)210 void fast_instruction_access_mmu_miss(sysarg_t unused, 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 tt Trap type. 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. 242 247 * @param istate Interrupted state saved on the stack. 243 248 */ 244 void fast_data_access_mmu_miss(u nsigned int tt, istate_t *istate)249 void fast_data_access_mmu_miss(uint64_t page_and_ctx, istate_t *istate) 245 250 { 246 251 pte_t *t; 247 uintptr_t va = DMISS_ADDRESS( istate->tlb_tag_access);248 uint16_t ctx = DMISS_CONTEXT( istate->tlb_tag_access);252 uintptr_t va = DMISS_ADDRESS(page_and_ctx); 253 uint16_t ctx = DMISS_CONTEXT(page_and_ctx); 249 254 as_t *as = AS; 250 255 … … 283 288 /** DTLB protection fault handler. 284 289 * 285 * @param tt Trap type. 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. 286 296 * @param istate Interrupted state saved on the stack. 287 297 */ 288 void fast_data_access_protection(u nsigned int tt, istate_t *istate)298 void fast_data_access_protection(uint64_t page_and_ctx, istate_t *istate) 289 299 { 290 300 pte_t *t; 291 uintptr_t va = DMISS_ADDRESS( istate->tlb_tag_access);292 uint16_t ctx = DMISS_CONTEXT( istate->tlb_tag_access);301 uintptr_t va = DMISS_ADDRESS(page_and_ctx); 302 uint16_t ctx = DMISS_CONTEXT(page_and_ctx); 293 303 as_t *as = AS; 294 304
Note:
See TracChangeset
for help on using the changeset viewer.