Changes in kernel/arch/sparc64/include/interrupt.h [22a28a69:7a0359b] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/interrupt.h
r22a28a69 r7a0359b 39 39 #include <typedefs.h> 40 40 #include <arch/regdef.h> 41 #include <trace.h> 41 42 42 #define IVT_ITEMS 43 #define IVT_FIRST 43 #define IVT_ITEMS 15 44 #define IVT_FIRST 1 44 45 45 46 /* This needs to be defined for inter-architecture API portability. */ 46 #define VECTOR_TLB_SHOOTDOWN_IPI 47 #define VECTOR_TLB_SHOOTDOWN_IPI 0 47 48 48 49 enum { 49 50 IPI_TLB_SHOOTDOWN = VECTOR_TLB_SHOOTDOWN_IPI 50 }; 51 }; 51 52 52 53 typedef struct istate { 53 uint64_t 54 uint64_t 55 uint64_t 54 uint64_t tnpc; 55 uint64_t tpc; 56 uint64_t tstate; 56 57 } istate_t; 57 58 58 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 59 NO_TRACE static inline void istate_set_retaddr(istate_t *istate, 60 uintptr_t retaddr) 59 61 { 60 62 istate->tpc = retaddr; 61 63 } 62 64 63 static inline int istate_from_uspace(istate_t *istate)65 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 64 66 { 65 67 return !(istate->tstate & TSTATE_PRIV_BIT); 66 68 } 67 69 68 static inline unative_t istate_get_pc(istate_t *istate)70 NO_TRACE static inline unative_t istate_get_pc(istate_t *istate) 69 71 { 70 72 return istate->tpc; 71 73 } 72 74 73 static inline unative_t istate_get_fp(istate_t *istate)75 NO_TRACE static inline unative_t istate_get_fp(istate_t *istate) 74 76 { 75 return 0; /* TODO */ 77 /* TODO */ 78 79 return 0; 76 80 } 77 81
Note:
See TracChangeset
for help on using the changeset viewer.