Ignore:
File:
1 edited

Legend:

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

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