From d9010c853c3d8b4915d15f4658d53eb0dd825b7c Mon Sep 17 00:00:00 2001 From: ragge Date: Mon, 19 Apr 1999 14:50:57 +0000 Subject: [PATCH] Don't try to init the L2 cache if there is no L2 cache. (KA640) --- sys/arch/vax/vax/ka650.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/vax/vax/ka650.c b/sys/arch/vax/vax/ka650.c index 66d43221faea..79715dd3312e 100644 --- a/sys/arch/vax/vax/ka650.c +++ b/sys/arch/vax/vax/ka650.c @@ -1,4 +1,4 @@ -/* $NetBSD: ka650.c,v 1.17 1999/02/02 18:37:21 ragge Exp $ */ +/* $NetBSD: ka650.c,v 1.18 1999/04/19 14:50:57 ragge Exp $ */ /* * Copyright (c) 1988 The Regents of the University of California. * All rights reserved. @@ -109,7 +109,8 @@ uvaxIII_conf(parent, self, aux) syssub == VAX_SIE_KA640 ? 4 : 5, syssub == VAX_SIE_KA655 ? 5 : 0, (vax_cpudata & 0xff), GETFRMREV(vax_siedata)); - ka650setcache(CACHEON); + if (syssub != VAX_SIE_KA640) + ka650setcache(CACHEON); if (ctob(physmem) > ka650merr_ptr->merr_qbmbr) { printf("physmem(0x%x) > qbmbr(0x%x)\n", ctob(physmem), (int)ka650merr_ptr->merr_qbmbr);