Rev 1787 | Rev 1942 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1787 | Rev 1888 | ||
---|---|---|---|
Line 24... | Line 24... | ||
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup ia64interrupt |
29 | /** @addtogroup ia64interrupt |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef __ia64_INTERRUPT_H__ |
35 | #ifndef KERN_ia64_INTERRUPT_H_ |
36 | #define __ia64_INTERRUPT_H__ |
36 | #define KERN_ia64_INTERRUPT_H_ |
37 | 37 | ||
38 | #include <typedefs.h> |
38 | #include <typedefs.h> |
39 | #include <arch/types.h> |
39 | #include <arch/types.h> |
40 | #include <arch/register.h> |
40 | #include <arch/register.h> |
41 | 41 | ||
Line 121... | Line 121... | ||
121 | 121 | ||
122 | static inline unative_t istate_get_pc(istate_t *istate) |
122 | static inline unative_t istate_get_pc(istate_t *istate) |
123 | { |
123 | { |
124 | return istate->cr_iip; |
124 | return istate->cr_iip; |
125 | } |
125 | } |
126 | #include <panic.h> |
- | |
- | 126 | ||
127 | static inline int istate_from_uspace(istate_t *istate) |
127 | static inline int istate_from_uspace(istate_t *istate) |
128 | { |
128 | { |
129 | return (istate->cr_iip)<0xe000000000000000ULL; |
129 | return (istate->cr_iip)<0xe000000000000000ULL; |
130 | } |
130 | } |
131 | 131 | ||
Line 137... | Line 137... | ||
137 | extern void nop_handler(uint64_t vector, istate_t *istate); |
137 | extern void nop_handler(uint64_t vector, istate_t *istate); |
138 | extern void external_interrupt(uint64_t vector, istate_t *istate); |
138 | extern void external_interrupt(uint64_t vector, istate_t *istate); |
139 | extern void virtual_interrupt(uint64_t irq, void *param); |
139 | extern void virtual_interrupt(uint64_t irq, void *param); |
140 | extern void disabled_fp_register(uint64_t vector, istate_t *istate); |
140 | extern void disabled_fp_register(uint64_t vector, istate_t *istate); |
141 | 141 | ||
142 | - | ||
143 | - | ||
144 | #endif |
142 | #endif |
145 | 143 | ||
146 | /** @} |
144 | /** @} |
147 | */ |
145 | */ |
148 | - |