git: 1c0357fe612a - stable/15 - amd64 trap.c: provide tag for the struct sfhandlers definition
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 27 Mar 2026 01:52:30 UTC
The branch stable/15 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=1c0357fe612ae69d1106b3ae37c10f87cc186506
commit 1c0357fe612ae69d1106b3ae37c10f87cc186506
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-03-03 06:37:03 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-03-26 23:42:56 +0000
amd64 trap.c: provide tag for the struct sfhandlers definition
(cherry picked from commit 8cc1c0f35ec8d5a3edb4ee1ede962a3c1f6baef0)
---
sys/amd64/amd64/trap.c | 6 ++++--
1 file 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,