aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/i386/exception.s
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/i386/exception.s')
-rw-r--r--sys/i386/i386/exception.s7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/i386/i386/exception.s b/sys/i386/i386/exception.s
index 13562fa6e994..e969d324dd69 100644
--- a/sys/i386/i386/exception.s
+++ b/sys/i386/i386/exception.s
@@ -35,6 +35,7 @@
*/
#include "opt_apic.h"
+#include "opt_atpic.h"
#include "opt_hwpmc_hooks.h"
#include "opt_kdtrace.h"
#include "opt_npx.h"
@@ -299,14 +300,18 @@ ENTRY(fork_trampoline)
SUPERALIGN_TEXT
MCOUNT_LABEL(bintr)
+#ifdef DEV_ATPIC
#include <i386/i386/atpic_vector.s>
+#endif
-#ifdef DEV_APIC
+#if defined(DEV_APIC) && defined(DEV_ATPIC)
.data
.p2align 4
.text
SUPERALIGN_TEXT
+#endif
+#ifdef DEV_APIC
#include <i386/i386/apic_vector.s>
#endif