Changeset cea12e9 in mainline for kernel/arch/ia32/include/interrupt.h
- Timestamp:
- 2006-10-27T11:13:13Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 16d71f41
- Parents:
- 8c84448
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/ia32/include/interrupt.h
r8c84448 rcea12e9 46 46 47 47 #define IVT_EXCBASE 0 48 #define IVT_IRQBASE (IVT_EXCBASE +EXC_COUNT)49 #define IVT_FREEBASE (IVT_IRQBASE+IRQ_COUNT)48 #define IVT_IRQBASE (IVT_EXCBASE + EXC_COUNT) 49 #define IVT_FREEBASE (IVT_IRQBASE + IRQ_COUNT) 50 50 51 #define IRQ_CLK 052 #define IRQ_KBD 153 #define IRQ_PIC1 251 #define IRQ_CLK 0 52 #define IRQ_KBD 1 53 #define IRQ_PIC1 2 54 54 #define IRQ_PIC_SPUR 7 55 55 56 56 /* this one must have four least significant bits set to ones */ 57 #define VECTOR_APIC_SPUR (IVT_ITEMS -1)57 #define VECTOR_APIC_SPUR (IVT_ITEMS - 1) 58 58 59 #if (((VECTOR_APIC_SPUR + 1) %16) || VECTOR_APIC_SPUR >= IVT_ITEMS)59 #if (((VECTOR_APIC_SPUR + 1) % 16) || VECTOR_APIC_SPUR >= IVT_ITEMS) 60 60 #error Wrong definition of VECTOR_APIC_SPUR 61 61 #endif 62 62 63 #define VECTOR_DEBUG 1 64 #define VECTOR_PIC_SPUR (IVT_IRQBASE+IRQ_PIC_SPUR) 65 #define VECTOR_CLK (IVT_IRQBASE+IRQ_CLK) 66 #define VECTOR_KBD (IVT_IRQBASE+IRQ_KBD) 67 68 #define VECTOR_SYSCALL (IVT_FREEBASE+0) 69 #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE+1) 70 #define VECTOR_DEBUG_IPI (IVT_FREEBASE+2) 63 #define VECTOR_DEBUG 1 64 #define VECTOR_CLK (IVT_IRQBASE + IRQ_CLK) 65 #define VECTOR_PIC_SPUR (IVT_IRQBASE + IRQ_PIC_SPUR) 66 #define VECTOR_SYSCALL IVT_FREEBASE 67 #define VECTOR_TLB_SHOOTDOWN_IPI (IVT_FREEBASE + 1) 68 #define VECTOR_DEBUG_IPI (IVT_FREEBASE + 2) 71 69 72 70 struct istate { … … 111 109 extern void (* eoi_function)(void); 112 110 113 extern void PRINT_INFO_ERRCODE(istate_t *istate); 114 extern void null_interrupt(int n, istate_t *istate); 115 extern void gp_fault(int n, istate_t *istate); 116 extern void nm_fault(int n, istate_t *istate); 117 extern void ss_fault(int n, istate_t *istate); 118 extern void simd_fp_exception(int n, istate_t *istate); 119 extern void syscall(int n, istate_t *istate); 120 extern void tlb_shootdown_ipi(int n, istate_t *istate); 121 111 extern void decode_istate(istate_t *istate); 112 extern void interrupt_init(void); 122 113 extern void trap_virtual_enable_irqs(uint16_t irqmask); 123 114 extern void trap_virtual_disable_irqs(uint16_t irqmask); 124 extern void trap_virtual_eoi(void);125 115 126 116 #endif
Note:
See TracChangeset
for help on using the changeset viewer.