Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4377 | Rev 4391 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | #if (((VECTOR_APIC_SPUR + 1) % 16) || VECTOR_APIC_SPUR >= IVT_ITEMS) |
60 | #if (((VECTOR_APIC_SPUR + 1) % 16) || VECTOR_APIC_SPUR >= IVT_ITEMS) |
61 | #error Wrong definition of VECTOR_APIC_SPUR |
61 | #error Wrong definition of VECTOR_APIC_SPUR |
62 | #endif |
62 | #endif |
63 | 63 | ||
64 | #define VECTOR_DEBUG 1 |
64 | #define VECTOR_DEBUG 1 |
- | 65 | #define VECTOR_BREAKPOINT 3 |
|
65 | #define VECTOR_CLK (IVT_IRQBASE + IRQ_CLK) |
66 | #define VECTOR_CLK (IVT_IRQBASE + IRQ_CLK) |
66 | #define VECTOR_PIC_SPUR (IVT_IRQBASE + IRQ_PIC_SPUR) |
67 | #define VECTOR_PIC_SPUR (IVT_IRQBASE + IRQ_PIC_SPUR) |
67 | #define VECTOR_SYSCALL IVT_FREEBASE |
68 | #define VECTOR_SYSCALL IVT_FREEBASE |
68 | #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE + 1) |
69 | #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE + 1) |
69 | #define VECTOR_DEBUG_IPI (IVT_FREEBASE + 2) |
70 | #define VECTOR_DEBUG_IPI (IVT_FREEBASE + 2) |
Line 94... | Line 95... | ||
94 | 95 | ||
95 | static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) |
96 | static inline void istate_set_retaddr(istate_t *istate, uintptr_t retaddr) |
96 | { |
97 | { |
97 | istate->rip = retaddr; |
98 | istate->rip = retaddr; |
98 | } |
99 | } |
99 | static inline unative_t istate_get_pc(istate_t *istate) |
100 | static inline uintptr_t istate_get_pc(istate_t *istate) |
100 | { |
101 | { |
101 | return istate->rip; |
102 | return istate->rip; |
102 | } |
103 | } |
103 | 104 | ||
104 | extern void (* disable_irqs_function)(uint16_t irqmask); |
105 | extern void (* disable_irqs_function)(uint16_t irqmask); |