Changeset cea12e9 in mainline for kernel/arch/ia32/include/interrupt.h


Ignore:
Timestamp:
2006-10-27T11:13:13Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
16d71f41
Parents:
8c84448
Message:

ia32: adopt new IRQ interface, mouse not tested yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/interrupt.h

    r8c84448 rcea12e9  
    4646
    4747#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)
    5050
    51 #define IRQ_CLK         0
    52 #define IRQ_KBD         1
    53 #define IRQ_PIC1        2
     51#define IRQ_CLK                 0
     52#define IRQ_KBD                 1
     53#define IRQ_PIC1                2
    5454#define IRQ_PIC_SPUR    7
    5555
    5656/* 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)
    5858
    59 #if (((VECTOR_APIC_SPUR + 1)%16) || VECTOR_APIC_SPUR >= IVT_ITEMS)
     59#if (((VECTOR_APIC_SPUR + 1) % 16) || VECTOR_APIC_SPUR >= IVT_ITEMS)
    6060#error Wrong definition of VECTOR_APIC_SPUR
    6161#endif
    6262
    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)
    7169
    7270struct istate {
     
    111109extern void (* eoi_function)(void);
    112110
    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 
     111extern void decode_istate(istate_t *istate);
     112extern void interrupt_init(void);
    122113extern void trap_virtual_enable_irqs(uint16_t irqmask);
    123114extern void trap_virtual_disable_irqs(uint16_t irqmask);
    124 extern void trap_virtual_eoi(void);
    125115
    126116#endif
Note: See TracChangeset for help on using the changeset viewer.