Use <machine/hp300spu.h> to determine if we might have a physical address

cache.
This commit is contained in:
thorpej 1997-04-27 20:54:39 +00:00
parent 544f501d29
commit 18a931000e

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.15 1997/04/06 21:40:38 mycroft Exp $ */
/* $NetBSD: sys_machdep.c,v 1.16 1997/04/27 20:54:39 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -35,6 +35,8 @@
* @(#)sys_machdep.c 8.2 (Berkeley) 1/13/94
*/
#include <machine/hp300spu.h> /* XXX param.h includes cpu.h */
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/ioctl.h>
@ -228,7 +230,7 @@ cachectl(req, addr, len)
switch (req) {
case CC_EXTPURGE|CC_PURGE:
case CC_EXTPURGE|CC_FLUSH:
#if defined(HP340) || defined(HP360) || defined(HP370) || defined(HP375)
#if defined(CACHE_HAVE_PAC)
if (ectype == EC_PHYS)
PCIA();
/* fall into... */
@ -238,7 +240,7 @@ cachectl(req, addr, len)
DCIU();
break;
case CC_EXTPURGE|CC_IPURGE:
#if defined(HP340) || defined(HP360) || defined(HP370) || defined(HP375)
#if defined(CACHE_HAVE_PAC)
if (ectype == EC_PHYS)
PCIA();
else