Ignore:
File:
1 edited

Legend:

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

    rd99c1d2 r7a0359b  
    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>
     40#include <trace.h>
    4041
    4142typedef struct istate {
     
    8182} istate_t;
    8283
    83 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
     84NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
     85    uintptr_t retaddr)
    8486{
    8587        istate->pc = retaddr;
    8688}
    8789
    88 /** Return true if exception happened while in userspace */
    89 static inline int istate_from_uspace(istate_t *istate)
     90/** Return true if exception happened while in userspace
     91 *
     92 * The contexts of MSR register was stored in SRR1.
     93 *
     94 */
     95NO_TRACE static inline int istate_from_uspace(istate_t *istate)
    9096{
    91         /* true if privilege level PR (copied from MSR) == 1 */
    9297        return (istate->srr1 & MSR_PR) != 0;
    9398}
    9499
    95 static inline unative_t istate_get_pc(istate_t *istate)
     100NO_TRACE static inline unative_t istate_get_pc(istate_t *istate)
    96101{
    97102        return istate->pc;
    98103}
    99104
    100 static inline unative_t istate_get_fp(istate_t *istate)
     105NO_TRACE static inline unative_t istate_get_fp(istate_t *istate)
    101106{
    102107        return istate->sp;
Note: See TracChangeset for help on using the changeset viewer.