Changeset 89c57b6 in mainline for kernel/arch/sparc64/include/interrupt.h
- Timestamp:
- 2011-04-13T14:45:41Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 88634420
- Parents:
- cefb126 (diff), 17279ead (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/interrupt.h
rcefb126 r89c57b6 38 38 39 39 #include <typedefs.h> 40 #include <arch/ regdef.h>40 #include <arch/istate.h> 41 41 42 #define IVT_ITEMS 43 #define IVT_FIRST 42 #define IVT_ITEMS 15 43 #define IVT_FIRST 1 44 44 45 45 /* This needs to be defined for inter-architecture API portability. */ 46 #define VECTOR_TLB_SHOOTDOWN_IPI 46 #define VECTOR_TLB_SHOOTDOWN_IPI 0 47 47 48 48 enum { 49 49 IPI_TLB_SHOOTDOWN = VECTOR_TLB_SHOOTDOWN_IPI 50 }; 51 52 typedef struct istate { 53 uint64_t tnpc; 54 uint64_t tpc; 55 uint64_t tstate; 56 } istate_t; 57 58 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 59 { 60 istate->tpc = retaddr; 61 } 62 63 static inline int istate_from_uspace(istate_t *istate) 64 { 65 return !(istate->tstate & TSTATE_PRIV_BIT); 66 } 67 68 static inline unative_t istate_get_pc(istate_t *istate) 69 { 70 return istate->tpc; 71 } 72 73 static inline unative_t istate_get_fp(istate_t *istate) 74 { 75 return 0; /* TODO */ 76 } 50 }; 77 51 78 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.