Ignore:
File:
1 edited

Legend:

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

    r7a0359b rd99c1d2  
    2727 */
    2828
    29 /** @addtogroup ppc32
     29/** @addtogroup ppc32   
    3030 * @{
    3131 */
     
    3737
    3838#include <typedefs.h>
    39 #include <arch/cpu.h>
    40 #include <trace.h>
     39#include <arch/regutils.h>
    4140
    4241typedef struct istate {
     
    8281} istate_t;
    8382
    84 NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
    85     uintptr_t retaddr)
     83static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
    8684{
    8785        istate->pc = retaddr;
    8886}
    8987
    90 /** Return true if exception happened while in userspace
    91  *
    92  * The contexts of MSR register was stored in SRR1.
    93  *
    94  */
    95 NO_TRACE static inline int istate_from_uspace(istate_t *istate)
     88/** Return true if exception happened while in userspace */
     89static inline int istate_from_uspace(istate_t *istate)
    9690{
     91        /* true if privilege level PR (copied from MSR) == 1 */
    9792        return (istate->srr1 & MSR_PR) != 0;
    9893}
    9994
    100 NO_TRACE static inline unative_t istate_get_pc(istate_t *istate)
     95static inline unative_t istate_get_pc(istate_t *istate)
    10196{
    10297        return istate->pc;
    10398}
    10499
    105 NO_TRACE static inline unative_t istate_get_fp(istate_t *istate)
     100static inline unative_t istate_get_fp(istate_t *istate)
    106101{
    107102        return istate->sp;
Note: See TracChangeset for help on using the changeset viewer.