Changeset 6dbe7f68 in mainline
- Timestamp:
- 2014-08-25T22:02:52Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df7f5cea
- Parents:
- 9222f9b
- Location:
- kernel
- Files:
-
- 1 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ppc32/include/arch/interrupt.h
r9222f9b r6dbe7f68 36 36 #define KERN_ppc32_INTERRUPT_H_ 37 37 38 #include <arch/ exception.h>38 #include <arch/istate.h> 39 39 40 40 #define IVT_ITEMS 16 -
kernel/arch/ppc32/include/arch/istate.h
r9222f9b r6dbe7f68 40 40 #ifdef KERNEL 41 41 42 #include <typedefs.h> 42 43 #include <arch/msr.h> 43 44 44 45 #else /* KERNEL */ 45 46 47 #include <sys/types.h> 46 48 #include <libarch/msr.h> 47 49 … … 81 83 uint32_t cr; 82 84 uint32_t pc; 83 uint32_t msr;85 uint32_t srr1; 84 86 uint32_t lr; 85 87 uint32_t ctr; … … 98 100 /** Return true if exception happened while in userspace 99 101 * 102 * The contexts of MSR register was stored in SRR1. 103 * 100 104 */ 101 105 NO_TRACE static inline int istate_from_uspace(istate_t *istate) 102 106 { 103 return (istate-> msr& MSR_PR) != 0;107 return (istate->srr1 & MSR_PR) != 0; 104 108 } 105 109 106 NO_TRACE static inline uintptr_t istate_get_pc(istate_t *istate)110 NO_TRACE static inline sysarg_t istate_get_pc(istate_t *istate) 107 111 { 108 112 return istate->pc; 109 113 } 110 114 111 NO_TRACE static inline uintptr_t istate_get_fp(istate_t *istate)115 NO_TRACE static inline sysarg_t istate_get_fp(istate_t *istate) 112 116 { 113 117 return istate->sp; 114 118 } 119 115 120 116 121 #endif -
kernel/arch/ppc32/src/interrupt.c
r9222f9b r6dbe7f68 36 36 #include <interrupt.h> 37 37 #include <arch/interrupt.h> 38 #include <arch/istate.h> 38 39 #include <typedefs.h> 39 40 #include <arch.h> -
kernel/generic/include/interrupt.h
r9222f9b r6dbe7f68 45 45 #include <ddi/irq.h> 46 46 #include <stacktrace.h> 47 #include <arch/istate.h> 47 48 48 49 typedef void (* iroutine_t)(unsigned int, istate_t *);
Note:
See TracChangeset
for help on using the changeset viewer.