Changeset 874621f in mainline for arch/mips32/include/exception.h


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/include/exception.h

    r6f9a9bc r874621f  
    3535
    3636#include <typedefs.h>
     37#include <arch/cp0.h>
    3738
    3839#define EXC_Int         0
     
    99100}
    100101
     102/** Return true if exception happened while in userspace */
     103static inline int istate_from_uspace(istate_t *istate)
     104{
     105        return istate->status & cp0_status_um_bit;
     106}
     107static inline __native istate_get_pc(istate_t *istate)
     108{
     109        return istate->epc;
     110}
     111
    101112extern void exception(istate_t *istate);
    102113extern void tlb_refill_entry(void);
Note: See TracChangeset for help on using the changeset viewer.