Ignore:
File:
1 edited

Legend:

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

    rb2fa1204 r1dbc43f  
    4646#include <arch.h>
    4747#include <print.h>
    48 #include <log.h>
    4948#include <typedefs.h>
    5049#include <config.h>
     
    252251        uintptr_t va = DMISS_ADDRESS(page_and_ctx);
    253252        uint16_t ctx = DMISS_CONTEXT(page_and_ctx);
    254         as_t *as = AS;
    255253
    256254        if (ctx == ASID_KERNEL) {
     
    258256                        /* NULL access in kernel */
    259257                        panic("NULL pointer dereference.");
    260                 } else if (va >= end_of_identity) {
    261                         /* Kernel non-identity */
    262                         as = AS_KERNEL;
    263                 } else {
    264                         panic("Unexpected kernel page fault.");
    265258                }
    266         }
    267 
    268         t = page_mapping_find(as, va, true);
     259                panic("Unexpected kernel page fault.");
     260        }
     261
     262        t = page_mapping_find(AS, va, true);
    269263        if (t) {
    270264                /*
     
    301295        uintptr_t va = DMISS_ADDRESS(page_and_ctx);
    302296        uint16_t ctx = DMISS_CONTEXT(page_and_ctx);
    303         as_t *as = AS;
    304 
    305         if (ctx == ASID_KERNEL)
    306                 as = AS_KERNEL;
    307 
    308         t = page_mapping_find(as, va, true);
     297
     298        t = page_mapping_find(AS, va, true);
    309299        if (t && PTE_WRITABLE(t)) {
    310300                /*
     
    336326void tlb_print(void)
    337327{
    338         log(LF_ARCH, LVL_WARN, "Operation not possible on Niagara.");
     328        printf("Operation not possible on Niagara.\n");
    339329}
    340330
Note: See TracChangeset for help on using the changeset viewer.