Changeset ed166f7 in mainline for kernel/arch/sparc64/include/interrupt.h
- Timestamp:
- 2006-08-31T18:53:14Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6767c1d
- Parents:
- e0b241f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/interrupt.h
re0b241f red166f7 34 34 */ 35 35 36 #ifndef __sparc64_INTERRUPT_H__37 #define __sparc64_INTERRUPT_H__36 #ifndef KERN_sparc64_INTERRUPT_H_ 37 #define KERN_sparc64_INTERRUPT_H_ 38 38 39 39 #include <typedefs.h> 40 40 #include <arch/types.h> 41 #include <arch/regdef.h> 41 42 42 43 #define IRQ_COUNT 1 /* TODO */ … … 53 54 static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) 54 55 { 55 /* TODO */56 istate->tpc = retaddr; 56 57 } 58 57 59 static inline int istate_from_uspace(istate_t *istate) 58 60 { 59 /* TODO */ 60 return 0; 61 return !(istate->tstate & TSTATE_PRIV_BIT); 61 62 } 63 62 64 static inline unative_t istate_get_pc(istate_t *istate) 63 65 { 64 /* TODO */ 65 return 0; 66 return istate->tpc; 66 67 } 67 68
Note:
See TracChangeset
for help on using the changeset viewer.