diff options
author | jhb <jhb@FreeBSD.org> | 2003-11-14 19:10:13 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-11-14 19:10:13 +0000 |
commit | 97b2405ad5f3fa180e58b14034ad2770115404d5 (patch) | |
tree | b2a31e6bc77203dd36c1b80cfb3608775750e0fe /sys/amd64/include/apicvar.h | |
parent | 29f07789b1fc26f60bc1c931437f78725f1bc994 (diff) | |
download | FreeBSD-src-97b2405ad5f3fa180e58b14034ad2770115404d5.zip FreeBSD-src-97b2405ad5f3fa180e58b14034ad2770115404d5.tar.gz |
Shuffle the APIC interrupt vectors around a bit:
- Move the IPI and local APIC interrupt vectors up into the 0xf0 - 0xff
range. The pmap lazyfix IPI was reordered down next to the TLB
shootdowns to avoid conflicting with the spurious interrupt vector.
- Move the base of APIC interrupts up 16 so that the first 16 APIC
interrupts do not overlap the vectors used by the ATPIC.
- Remove bogus interrupt vector reservations for LINT[01].
- Now that 0xc0 - 0xef are available, use them for device interrupts.
This increases the number of APIC device interrupts to 191.
- Increase the system-wide number of global interrupts to 191 to catch up
to more APIC interrupts.
Requested by: peter (2)
Diffstat (limited to 'sys/amd64/include/apicvar.h')
-rw-r--r-- | sys/amd64/include/apicvar.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/sys/amd64/include/apicvar.h b/sys/amd64/include/apicvar.h index 1b03c6b..b202911 100644 --- a/sys/amd64/include/apicvar.h +++ b/sys/amd64/include/apicvar.h @@ -40,13 +40,13 @@ * Layout of local APIC interrupt vectors: * * 0xff (255) +-------------+ - * | | 15 (Spurious Vector) + * | | 15 (Spurious / IPIs / Local Interrupts ) * 0xf0 (240) +-------------+ - * | | 14 (Interprocessor Interrupts) + * | | 14 (I/O Interrupts) * 0xe0 (224) +-------------+ - * | | 13 (Local Interrupt (LINT[01])) + * | | 13 (I/O Interrupts) * 0xd0 (208) +-------------+ - * | | 12 (Local Timer and Error Interrupts) + * | | 12 (I/O Interrupts) * 0xc0 (192) +-------------+ * | | 11 (I/O Interrupts) * 0xb0 (176) +-------------+ @@ -66,7 +66,7 @@ * 0x40 (64) +-------------+ * | | 3 (I/O Interrupts) * 0x30 (48) +-------------+ - * | | 2 (I/O Interrupts) + * | | 2 (ATPIC Interrupts) * 0x20 (32) +-------------+ * | | 1 (Exceptions, traps, faults, etc.) * 0x10 (16) +-------------+ @@ -78,23 +78,24 @@ */ #define APIC_ID_ALL 0xff -#define APIC_NUM_IOINTS 160 +#define APIC_IO_INTS (IDT_IO_INTS + 16) +#define APIC_NUM_IOINTS 192 -#define APIC_LOCAL_INTS (IDT_IO_INTS + APIC_NUM_IOINTS) +#define APIC_LOCAL_INTS 240 #define APIC_TIMER_INT APIC_LOCAL_INTS #define APIC_ERROR_INT (APIC_LOCAL_INTS + 1) #define APIC_THERMAL_INT (APIC_LOCAL_INTS + 2) -#define APIC_IPI_INTS (APIC_LOCAL_INTS + 32) +#define APIC_IPI_INTS (APIC_LOCAL_INTS + 3) #define IPI_AST APIC_IPI_INTS /* Generate software trap. */ #define IPI_INVLTLB (APIC_IPI_INTS + 1) /* TLB Shootdown IPIs */ #define IPI_INVLPG (APIC_IPI_INTS + 2) #define IPI_INVLRNG (APIC_IPI_INTS + 3) +#define IPI_LAZYPMAP (APIC_IPI_INTS + 4) /* Lazy pmap release. */ #define IPI_HARDCLOCK (APIC_IPI_INTS + 8) /* Inter-CPU clock handling. */ #define IPI_STATCLOCK (APIC_IPI_INTS + 9) #define IPI_RENDEZVOUS (APIC_IPI_INTS + 10) /* Inter-CPU rendezvous. */ -#define IPI_LAZYPMAP (APIC_IPI_INTS + 11) /* Lazy pmap release. */ -#define IPI_STOP (APIC_IPI_INTS + 12) /* Stop CPU until restarted. */ +#define IPI_STOP (APIC_IPI_INTS + 11) /* Stop CPU until restarted. */ #define APIC_SPURIOUS_INT 255 @@ -127,7 +128,8 @@ struct apic_enumerator { inthand_t IDTVEC(apic_isr1), IDTVEC(apic_isr2), IDTVEC(apic_isr3), - IDTVEC(apic_isr4), IDTVEC(apic_isr5), IDTVEC(spuriousint); + IDTVEC(apic_isr4), IDTVEC(apic_isr5), IDTVEC(apic_isr6), + IDTVEC(apic_isr7), IDTVEC(spuriousint); u_int apic_irq_to_idt(u_int irq); u_int apic_idt_to_irq(u_int vector); |