Ignore:
File:
1 edited

Legend:

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

    r96b02eb9 r826c203  
    2727 */
    2828
    29 /** @addtogroup ppc32
     29/** @addtogroup ppc32   
    3030 * @{
    3131 */
     
    3636#define KERN_ppc32_EXCEPTION_H_
    3737
    38 #include <typedefs.h>
    39 #include <arch/cpu.h>
    40 #include <trace.h>
     38#include <arch/types.h>
     39#include <arch/regutils.h>
    4140
    42 typedef struct istate {
     41typedef struct {
    4342        uint32_t r0;
    4443        uint32_t r2;
     
    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 sysarg_t istate_get_pc(istate_t *istate)
     95static inline unative_t istate_get_pc(istate_t *istate)
    10196{
    10297        return istate->pc;
    103 }
    104 
    105 NO_TRACE static inline sysarg_t istate_get_fp(istate_t *istate)
    106 {
    107         return istate->sp;
    10898}
    10999
Note: See TracChangeset for help on using the changeset viewer.