summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/initcpu.c
diff options
context:
space:
mode:
authorkato <kato@FreeBSD.org>1997-06-27 13:46:19 +0000
committerkato <kato@FreeBSD.org>1997-06-27 13:46:19 +0000
commitd74d0d7da5f91d54d8e16149aaafef8d61af050d (patch)
tree90ef56b40e68ef1c245d26de2debb4b1e63c6658 /sys/amd64/amd64/initcpu.c
parentf8783d31d52dc1fac8eb321d102153e23c3550fd (diff)
downloadFreeBSD-src-d74d0d7da5f91d54d8e16149aaafef8d61af050d.zip
FreeBSD-src-d74d0d7da5f91d54d8e16149aaafef8d61af050d.tar.gz
Added CPU_DIRECT_MAPPED_CACHE option which sets L1 cache in direct
mapped mode on Cyrix 486DLC box.
Diffstat (limited to 'sys/amd64/amd64/initcpu.c')
-rw-r--r--sys/amd64/amd64/initcpu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/amd64/amd64/initcpu.c b/sys/amd64/amd64/initcpu.c
index c5e8a18..624c366 100644
--- a/sys/amd64/amd64/initcpu.c
+++ b/sys/amd64/amd64/initcpu.c
@@ -26,7 +26,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: initcpu.c,v 1.4 1997/04/26 04:08:45 kato Exp $
+ * $Id: initcpu.c,v 1.5 1997/05/31 08:45:24 kato Exp $
*/
#include "opt_cpu.h"
@@ -119,6 +119,9 @@ init_486dlc(void)
#else
ccr0 |= CCR0_NC1;
#endif
+#ifdef CPU_DIRECT_MAPPED_CACHE
+ ccr0 |= CCR0_CO; /* Direct mapped mode. */
+#endif
write_cyrix_reg(CCR0, ccr0);
/* Clear non-cacheable region. */
OpenPOWER on IntegriCloud