Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/amd64/include/istate.h

    rd59c046 r9d58539  
    6666} istate_t;
    6767
    68 #define RPL_USER        3
    69 
    7068/** Return true if exception happened while in userspace */
    7169NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    7270{
    73         return (istate->cs & RPL_USER) == RPL_USER;
     71        return !(istate->rip & UINT64_C(0x8000000000000000));
    7472}
    7573
Note: See TracChangeset for help on using the changeset viewer.