Changeset 874621f in mainline for arch/mips32/src/mm/tlb.c


Ignore:
Timestamp:
2006-06-06T07:40:51Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0dbc4e7
Parents:
6f9a9bc
Message:

Added kernel circular buffer klog.
Added automatic killing of tasks raising inappropriate exceptions.
TODO Fix vsnprintf return value(and behaviour according to specs) and remove workaround in klog.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/src/mm/tlb.c

    r6f9a9bc r874621f  
    4040#include <debug.h>
    4141#include <align.h>
     42#include <interrupt.h>
    4243
    4344static void tlb_refill_fail(istate_t *istate);
     
    337338        if (s)
    338339                sym2 = s;
     340
     341        fault_if_from_uspace(istate, "TLB Refill Exception on %P", cp0_badvaddr_read());
    339342        panic("%X: TLB Refill Exception at %X(%s<-%s)\n", cp0_badvaddr_read(), istate->epc, symbol, sym2);
    340343}
     
    348351        if (s)
    349352                symbol = s;
     353        fault_if_from_uspace(istate, "TLB Invalid Exception on %P", cp0_badvaddr_read());
    350354        panic("%X: TLB Invalid Exception at %X(%s)\n", cp0_badvaddr_read(), istate->epc, symbol);
    351355}
     
    358362        if (s)
    359363                symbol = s;
     364        fault_if_from_uspace(istate, "TLB Modified Exception on %P", cp0_badvaddr_read());
    360365        panic("%X: TLB Modified Exception at %X(%s)\n", cp0_badvaddr_read(), istate->epc, symbol);
    361366}
Note: See TracChangeset for help on using the changeset viewer.