Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/include/exception.h

    rffe276f rd99c1d2  
    2727 */
    2828
    29 /** @addtogroup ppc32
     29/** @addtogroup ppc32   
    3030 * @{
    3131 */
     
    3737
    3838#include <typedefs.h>
    39 #include <arch/cpu.h>
     39#include <arch/regutils.h>
    4040
    4141typedef struct istate {
     
    8686}
    8787
    88 /** Return true if exception happened while in userspace
    89  *
    90  * The contexts of MSR register was stored in SRR1.
    91  *
    92  */
     88/** Return true if exception happened while in userspace */
    9389static inline int istate_from_uspace(istate_t *istate)
    9490{
     91        /* true if privilege level PR (copied from MSR) == 1 */
    9592        return (istate->srr1 & MSR_PR) != 0;
    9693}
Note: See TracChangeset for help on using the changeset viewer.