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

    r6f9a9bc r874621f  
    8787};
    8888
     89/** Return true if exception happened while in userspace */
     90static inline int istate_from_uspace(istate_t *istate)
     91{
     92        return !(istate->rip & 0x8000000000000000);
     93}
     94
    8995static inline void istate_set_retaddr(istate_t *istate, __address retaddr)
    9096{
    9197        istate->rip = retaddr;
     98}
     99static inline __native istate_get_pc(istate_t *istate)
     100{
     101        return istate->rip;
    92102}
    93103
Note: See TracChangeset for help on using the changeset viewer.