summaryrefslogtreecommitdiffstats
path: root/sys/i386/i386/trap.c
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-09-04 01:46:06 +0000
committerjhb <jhb@FreeBSD.org>2014-09-04 01:46:06 +0000
commit1e7d9a13243132952f65939f2232142b369360d8 (patch)
tree23ebceb1eef9d69ce3523718cbe3210794df6a34 /sys/i386/i386/trap.c
parent9877edbb6dcd5ef6bf81128b82ebd8ebfa474916 (diff)
downloadFreeBSD-src-1e7d9a13243132952f65939f2232142b369360d8.zip
FreeBSD-src-1e7d9a13243132952f65939f2232142b369360d8.tar.gz
- Move prototypes for various functions into out of C files and into
<machine/md_var.h>. - Move some CPU-related variables out of i386/i386/identcpu.c to initcpu.c to match amd64. - Move the declaration of has_f00f_hack out of identcpu.c to machdep.c. - Remove a misleading comment from i386/i386/initcpu.c (locore zeros the BSS before it calls identify_cpu()) and remove explicit zero assignments to reduce the diff with amd64.
Diffstat (limited to 'sys/i386/i386/trap.c')
-rw-r--r--sys/i386/i386/trap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/i386/trap.c b/sys/i386/i386/trap.c
index e7fb995..1d0d104 100644
--- a/sys/i386/i386/trap.c
+++ b/sys/i386/i386/trap.c
@@ -153,7 +153,7 @@ static char *trap_msg[] = {
};
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
-extern int has_f00f_bug;
+int has_f00f_bug = 0; /* Initialized so that it can be patched. */
#endif
#ifdef KDB
OpenPOWER on IntegriCloud