diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-19 23:44:56 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-12-19 23:44:56 +0000 |
commit | 56bd34edb3d2ae67aed7828a74f550faca67167b (patch) | |
tree | b6232db412861cba3a31188dbfda0e93bd182af7 | |
parent | 9885f879092c14f23e37be7315ead6366b31b213 (diff) |
oh sorry, I forgot two #ifdef
-rw-r--r-- | sys/arch/i386/i386/cpu.c | 6 |
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 |