From 7fac6d07f67ec8e203eb45997d29699e73ebac06 Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sun, 11 Jan 2004 03:02:25 +0000 Subject: [PATCH] Include "opt_cpu.h" and related #ifdef's for SSE so that pagezero() actually includes the call to sse2_pagezero(). --- sys/i386/i386/pmap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 87a44c76cf72..529b1542abc9 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 #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