Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176395114
D60809.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D60809.id.diff
View Options
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -83,9 +83,6 @@
#include <ddb/ddb.h>
#endif
-#define SDT_APIC SDT_SYSIGT
-#define GSEL_APIC 0
-
static MALLOC_DEFINE(M_LAPIC, "local_apic", "Local APIC items");
/* Sanity checks on IDT vectors. */
@@ -588,8 +585,7 @@
}
/* Setup the spurious interrupt handler. */
- setidt(APIC_SPURIOUS_INT, IDTVEC(spuriousint), SDT_APIC, SEL_KPL,
- GSEL_APIC);
+ setidt(APIC_SPURIOUS_INT, IDTVEC(spuriousint), SDT_SYSIGT, SEL_KPL, 0);
/* Perform basic initialization of the BSP's local APIC. */
lapic_enable();
@@ -600,19 +596,19 @@
/* Local APIC timer interrupt. */
setidt(APIC_TIMER_INT, pti ? IDTVEC(timerint_pti) : IDTVEC(timerint),
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
/* Local APIC error interrupt. */
setidt(APIC_ERROR_INT, pti ? IDTVEC(errorint_pti) : IDTVEC(errorint),
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
/* Thermal interrupt */
setidt(APIC_THERMAL_INT, pti ? IDTVEC(thermalint_pti) : IDTVEC(thermalint),
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
/* Local APIC CMCI. */
setidt(APIC_CMC_INT, pti ? IDTVEC(cmcint_pti) : IDTVEC(cmcint),
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
if ((resource_int_value("apic", 0, "clock", &i) != 0 || i != 0)) {
/* Set if APIC timer runs in C3. */
@@ -1835,7 +1831,7 @@
("Attempt to overwrite DTrace entry"));
#endif
setidt(vector, (pti ? ioint_pti_handlers : ioint_handlers)[vector / 32],
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
}
void
@@ -1854,8 +1850,8 @@
* We can not currently clear the idt entry because other cpus
* may have a valid vector at this offset.
*/
- setidt(vector, pti ? &IDTVEC(rsvd_pti) : &IDTVEC(rsvd), SDT_APIC,
- SEL_KPL, GSEL_APIC);
+ setidt(vector, pti ? &IDTVEC(rsvd_pti) : &IDTVEC(rsvd), SDT_SYSIGT,
+ SEL_KPL, 0);
#endif
}
@@ -2411,7 +2407,7 @@
if (fip == NULL) {
vector = idx;
fred_ipi_handlers[idx - IPI_DYN_FIRST] = fred_ipifunc;
- setidt(vector, ipifunc, SDT_APIC, SEL_KPL, GSEL_APIC);
+ setidt(vector, ipifunc, SDT_SYSIGT, SEL_KPL, 0);
break;
}
}
@@ -2439,7 +2435,7 @@
func != (uintptr_t)&IDTVEC(rsvd_pti),
("invalid idtfunc %d %#lx", vector, func));
setidt(vector, pti ? &IDTVEC(rsvd_pti) : &IDTVEC(rsvd),
- SDT_APIC, SEL_KPL, GSEL_APIC);
+ SDT_SYSIGT, SEL_KPL, 0);
}
mtx_unlock_spin(&icu_lock);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 19, 1:10 PM (19 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41001232
Default Alt Text
D60809.id.diff (2 KB)
Attached To
Mode
D60809: x86 lapic: Assume amd64 values when setting IDT entries
Attached
Detach File
Event Timeline
Log In to Comment