Changeset 874621f in mainline for arch/ia32/include/interrupt.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/ia32/include/interrupt.h

    r6f9a9bc r874621f  
    8484};
    8585
     86/** Return true if exception happened while in userspace */
     87static inline int istate_from_uspace(istate_t *istate)
     88{
     89        return !(istate->eip & 0x80000000);
     90}
     91
    8692static inline void istate_set_retaddr(istate_t *istate, __address retaddr)
    8793{
    8894        istate->eip = retaddr;
     95}
     96
     97static inline __native istate_get_pc(istate_t *istate)
     98{
     99        return istate->eip;
    89100}
    90101
Note: See TracChangeset for help on using the changeset viewer.