aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2026-03-03 06:37:03 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2026-03-20 22:49:03 +0000
commit8cc1c0f35ec8d5a3edb4ee1ede962a3c1f6baef0 (patch)
treea7b4699fbf0eea609d2cf01eaef826d580f5dcb5 /sys/amd64
parent23dc4850fbc9e7abfc54f0ce11f343e4677fd0fb (diff)
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/trap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 8a1d1528e6da..359b3dfe3609 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -319,10 +319,12 @@ trap_check_intr_kernel(struct thread *td, struct trapframe *frame)
/*
* Table of handlers for various segment load faults.
*/
-static const struct {
+struct sfhandler {
uintptr_t faddr;
uintptr_t fhandler;
-} sfhandlers[] = {
+};
+
+static const struct sfhandler sfhandlers[] = {
{
.faddr = (uintptr_t)ld_ds,
.fhandler = (uintptr_t)ds_load_fault,