Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/src/mm/sun4v/tlb.c

    rcade9c1 rb2fa1204  
    208208
    209209/** ITLB miss handler. */
    210 void fast_instruction_access_mmu_miss(unsigned int tt, istate_t *istate)
     210void fast_instruction_access_mmu_miss(sysarg_t unused, istate_t *istate)
    211211{
    212212        uintptr_t va = ALIGN_DOWN(istate->tpc, PAGE_SIZE);
     
    239239 * low-level, assembly language part of the fast_data_access_mmu_miss handler.
    240240 *
    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.
    242247 * @param istate        Interrupted state saved on the stack.
    243248 */
    244 void fast_data_access_mmu_miss(unsigned int tt, istate_t *istate)
     249void fast_data_access_mmu_miss(uint64_t page_and_ctx, istate_t *istate)
    245250{
    246251        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);
    249254        as_t *as = AS;
    250255
     
    283288/** DTLB protection fault handler.
    284289 *
    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.
    286296 * @param istate        Interrupted state saved on the stack.
    287297 */
    288 void fast_data_access_protection(unsigned int tt, istate_t *istate)
     298void fast_data_access_protection(uint64_t page_and_ctx, istate_t *istate)
    289299{
    290300        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);
    293303        as_t *as = AS;
    294304
Note: See TracChangeset for help on using the changeset viewer.