diff options
| author | Konstantin Belousov <kib@FreeBSD.org> | 2025-10-24 18:17:56 +0000 |
|---|---|---|
| committer | Konstantin Belousov <kib@FreeBSD.org> | 2025-10-24 18:54:17 +0000 |
| commit | cf59dabe161f956ac7d36fbb91b7edeab9d0f6c3 (patch) | |
| tree | 2059102f3a7c2c732acf5573e296ee58717a7d3b | |
| parent | daa6660f899309f832bba0c7ac72dada125cfed5 (diff) | |
x86 LAPIC: force edge-triggered mode for !bootverbose as well
Submitted by: Austin Shafer <ashafer@nvidia.com>
Reviewed by: imp, jhb
Fixes: 5c039412a2823
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D53336
| -rw-r--r-- | sys/x86/x86/local_apic.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c index db9a1eb757de..c1c9029531f5 100644 --- a/sys/x86/x86/local_apic.c +++ b/sys/x86/x86/local_apic.c @@ -372,9 +372,12 @@ lvt_mode_impl(struct lapic *la, struct lvt *lvt, u_int pin, uint32_t value) case APIC_LVT_DM_SMI: case APIC_LVT_DM_INIT: case APIC_LVT_DM_EXTINT: - if (!lvt->lvt_edgetrigger && bootverbose) { - printf("lapic%u: Forcing LINT%u to edge trigger\n", - la->la_id, pin); + if (!lvt->lvt_edgetrigger) { + if (bootverbose) { + printf( + "lapic%u: Forcing LINT%u to edge trigger\n", + la->la_id, pin); + } value &= ~APIC_LVT_TM; } /* Use a vector of 0. */ |
