Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jul 2026 00:15:48 +0000
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 55c240eada96 - main - amd64: Fix an off-by-one in the fred_ipi_handlers definition
Message-ID:  <6a600bb4.44464.534d107c@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=55c240eada966b4595cbf93bf0641073713c5b99

commit 55c240eada966b4595cbf93bf0641073713c5b99
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-07-21 15:29:33 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-07-21 22:46:42 +0000

    amd64: Fix an off-by-one in the fred_ipi_handlers definition
    
    Fixes:          6e93f5e4d693 ("amd64: FRED support")
    Reviewed by:    kib
    Differential Revision:  https://reviews.freebsd.org/D58378
---
 sys/x86/x86/local_apic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/x86/x86/local_apic.c b/sys/x86/x86/local_apic.c
index 0dac24ae3048..405db4fcc550 100644
--- a/sys/x86/x86/local_apic.c
+++ b/sys/x86/x86/local_apic.c
@@ -2394,7 +2394,7 @@ native_lapic_ipi_vectored(u_int vector, int dest)
 void (*ipi_vectored)(u_int, int) = &native_lapic_ipi_vectored;
 #endif /* SMP */
 
-void (*fred_ipi_handlers[IPI_DYN_LAST - IPI_DYN_FIRST])(struct trapframe *);
+void (*fred_ipi_handlers[IPI_DYN_LAST - IPI_DYN_FIRST + 1])(struct trapframe *);
 
 /*
  * Since the IDT is shared by all CPUs the IPI slot update needs to be globally


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a600bb4.44464.534d107c>