diff options
author | alc <alc@FreeBSD.org> | 2004-01-11 03:02:25 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2004-01-11 03:02:25 +0000 |
commit | 200fe40a73d01bbbf1b78ae0178bb90ece2ac33d (patch) | |
tree | 3985fbdd57e6e367de7a86cb03a355214b12af26 | |
parent | 9190052ce96c82289a2d3eda97fbfa0e10e856a0 (diff) | |
download | FreeBSD-src-200fe40a73d01bbbf1b78ae0178bb90ece2ac33d.zip FreeBSD-src-200fe40a73d01bbbf1b78ae0178bb90ece2ac33d.tar.gz |
Include "opt_cpu.h" and related #ifdef's for SSE so that pagezero()
actually includes the call to sse2_pagezero().
-rw-r--r-- | sys/i386/i386/pmap.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 87a44c7..529b154 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -101,6 +101,7 @@ __FBSDID("$FreeBSD$"); * and to when physical maps must be made correct. */ +#include "opt_cpu.h" #include "opt_pmap.h" #include "opt_msgbuf.h" #include "opt_kstack_pages.h" @@ -140,6 +141,13 @@ __FBSDID("$FreeBSD$"); #include <machine/smp.h> #endif +#if !defined(CPU_ENABLE_SSE) && defined(I686_CPU) +#define CPU_ENABLE_SSE +#endif +#if defined(CPU_DISABLE_SSE) +#undef CPU_ENABLE_SSE +#endif + #define PMAP_KEEP_PDIRS #ifndef PMAP_SHPGPERPROC #define PMAP_SHPGPERPROC 200 |