summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-12-19 23:44:55 +0000
committerderaadt <deraadt@openbsd.org>2013-12-19 23:44:55 +0000
commitbfbee3ea0550aa21d73f392955d406a81c902939 (patch)
tree18ec93ec1a6b25de3c135ae73401fe428b58c44d
parentuse full name for author, with his permission (diff)
downloadwireguard-openbsd-bfbee3ea0550aa21d73f392955d406a81c902939.tar.xz
wireguard-openbsd-bfbee3ea0550aa21d73f392955d406a81c902939.zip
oh sorry, I forgot two #ifdef
-rw-r--r--sys/arch/i386/i386/cpu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/i386/i386/cpu.c b/sys/arch/i386/i386/cpu.c
index bfb026acc1f..41e54c12faf 100644
--- a/sys/arch/i386/i386/cpu.c
+++ b/sys/arch/i386/i386/cpu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.c,v 1.52 2013/12/19 21:30:02 deraadt Exp $ */
+/* $OpenBSD: cpu.c,v 1.53 2013/12/19 23:44:55 deraadt Exp $ */
/* $NetBSD: cpu.c,v 1.1.2.7 2000/06/26 02:04:05 sommerfeld Exp $ */
/*-
@@ -330,7 +330,9 @@ cpu_attach(struct device *parent, struct device *self, void *aux)
printf("(uniprocessor)\n");
ci->ci_flags |= CPUF_PRESENT | CPUF_SP | CPUF_PRIMARY;
identifycpu(ci);
+#ifdef MTRR
mem_range_attach();
+#endif
cpu_init(ci);
break;
@@ -338,7 +340,9 @@ cpu_attach(struct device *parent, struct device *self, void *aux)
printf("apid %d (boot processor)\n", caa->cpu_number);
ci->ci_flags |= CPUF_PRESENT | CPUF_BSP | CPUF_PRIMARY;
identifycpu(ci);
+#ifdef MTRR
mem_range_attach();
+#endif
cpu_init(ci);
#if NLAPIC > 0