Ignore:
File:
1 edited

Legend:

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

    rf238e86 ra000878c  
    5050#include <panic.h>
    5151#include <arch/asm.h>
     52#include <genarch/mm/page_ht.h>
    5253
    5354#ifdef CONFIG_TSB
     
    6364    tlb_tag_access_reg_t, const char *);
    6465
    65 char *context_encoding[] = {
     66const char *context_encoding[] = {
    6667        "Primary",
    6768        "Secondary",
     
    475476}
    476477
    477 void dump_sfsr_and_sfar(void)
     478void describe_dmmu_fault(void)
    478479{
    479480        tlb_sfsr_reg_t sfsr;
     
    498499}
    499500
     501void dump_sfsr_and_sfar(void)
     502{
     503        tlb_sfsr_reg_t sfsr;
     504        uintptr_t sfar;
     505
     506        sfsr.value = dtlb_sfsr_read();
     507        sfar = dtlb_sfar_read();
     508       
     509#if defined (US)
     510        printf("DTLB SFSR: asi=%#x, ft=%#x, e=%d, ct=%d, pr=%d, w=%d, ow=%d, "
     511            "fv=%d\n", sfsr.asi, sfsr.ft, sfsr.e, sfsr.ct, sfsr.pr, sfsr.w,
     512            sfsr.ow, sfsr.fv);
     513#elif defined (US3)
     514        printf("DTLB SFSR: nf=%d, asi=%#x, tm=%d, ft=%#x, e=%d, ct=%d, pr=%d, "
     515            "w=%d, ow=%d, fv=%d\n", sfsr.nf, sfsr.asi, sfsr.tm, sfsr.ft,
     516            sfsr.e, sfsr.ct, sfsr.pr, sfsr.w, sfsr.ow, sfsr.fv);
     517#endif
     518           
     519        printf("DTLB SFAR: address=%p\n", sfar);
     520       
     521        dtlb_sfsr_write(0);
     522}
     523
    500524#if defined (US)
    501525/** Invalidate all unlocked ITLB and DTLB entries. */
Note: See TracChangeset for help on using the changeset viewer.