Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/sparc64/include/interrupt.h

    r7a0359b rd99c1d2  
    3939#include <typedefs.h>
    4040#include <arch/regdef.h>
    41 #include <trace.h>
    4241
    43 #define IVT_ITEMS  15
    44 #define IVT_FIRST  1
     42#define IVT_ITEMS       15
     43#define IVT_FIRST       1
    4544
    4645/* This needs to be defined for inter-architecture API portability. */
    47 #define VECTOR_TLB_SHOOTDOWN_IPI  0
     46#define VECTOR_TLB_SHOOTDOWN_IPI        0
    4847
    4948enum {
    5049        IPI_TLB_SHOOTDOWN = VECTOR_TLB_SHOOTDOWN_IPI
    51 };
     50};             
    5251
    5352typedef struct istate {
    54         uint64_t tnpc;
    55         uint64_t tpc;
    56         uint64_t tstate;
     53        uint64_t        tnpc;
     54        uint64_t        tpc;
     55        uint64_t        tstate;
    5756} istate_t;
    5857
    59 NO_TRACE static inline void istate_set_retaddr(istate_t *istate,
    60     uintptr_t retaddr)
     58static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr)
    6159{
    6260        istate->tpc = retaddr;
    6361}
    6462
    65 NO_TRACE static inline int istate_from_uspace(istate_t *istate)
     63static inline int istate_from_uspace(istate_t *istate)
    6664{
    6765        return !(istate->tstate & TSTATE_PRIV_BIT);
    6866}
    6967
    70 NO_TRACE static inline unative_t istate_get_pc(istate_t *istate)
     68static inline unative_t istate_get_pc(istate_t *istate)
    7169{
    7270        return istate->tpc;
    7371}
    7472
    75 NO_TRACE static inline unative_t istate_get_fp(istate_t *istate)
     73static inline unative_t istate_get_fp(istate_t *istate)
    7674{
    77         /* TODO */
    78        
    79         return 0;
     75        return 0;       /* TODO */
    8076}
    8177
Note: See TracChangeset for help on using the changeset viewer.