summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilos Nikic <nikic.milos@gmail.com>2025-06-23 23:21:34 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2025-06-23 23:21:34 +0200
commit3dd7daf59de83dc1675f6647a616a7e50ed533b2 (patch)
tree4204299d22f5964565e45990b8f334e4acbc71d8
parent878635ec6479f34c7fe1517a3c885752a1d72690 (diff)
i386: trap.c add prototype for handle_double_fault
The handle_double_fault function is defined in trap.c and called from x86_64/locore.S, but lacked a prototype, triggering a compiler warning: 'no previous prototype for handle_double_fault'. This change adds a forward declaration at the top of trap.c to satisfy the compiler and clarify the function's external linkage. No functional changes.
-rw-r--r--i386/i386/trap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c
index 90650b31..4f6c457f 100644
--- a/i386/i386/trap.c
+++ b/i386/i386/trap.c
@@ -65,6 +65,9 @@
#include "debug.h"
+/* Called from assembly (locore.S) */
+void handle_double_fault(struct i386_saved_state *regs);
+
#if MACH_KDB
boolean_t debug_all_traps_with_kdb = FALSE;
extern struct db_watchpoint *db_watchpoint_list;