aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2026-07-17 23:55:21 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2026-07-17 23:55:21 +0000
commit422a530c80080f2585ecefe812d609079b851fe3 (patch)
tree40429064c765c7c8ef239532f1848d9f6b0adbe5
parent8a1600428e937a41b65869c78ce847f7cabbad24 (diff)
arm64/vmm: Fix vgic_v3 copy paste error for writing to GICD_ICENABLERn
Otherwise we try to disable the wrong IRQ. Fixes: 47e073941f4e ("Import the kernel parts of bhyve/arm64") MFC after: 1 week
-rw-r--r--sys/arm64/vmm/io/vgic_v3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/vmm/io/vgic_v3.c b/sys/arm64/vmm/io/vgic_v3.c
index 81bb94878368..ee96cc975755 100644
--- a/sys/arm64/vmm/io/vgic_v3.c
+++ b/sys/arm64/vmm/io/vgic_v3.c
@@ -1119,7 +1119,7 @@ dist_icenabler_write(struct hypctx *hypctx, u_int reg, u_int offset, u_int size,
MPASS(offset == 0);
MPASS(size == 4);
- n = (reg - GICD_ISENABLER(0)) / 4;
+ n = (reg - GICD_ICENABLER(0)) / 4;
/* GICD_ICENABLER0 is RAZ/WI so handled separately */
MPASS(n > 0);
write_enabler(hypctx, n, false, wval);