diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-11-04 02:58:04 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-11-04 02:58:04 +0000 |
commit | 8b2ebe627d29ac3418c4d81b331999c24d1b6a87 (patch) | |
tree | a66b75c47e0530c8ca143b12467ef78dc6403aa6 /sys/arch/hp300/include/hp300spu.h | |
parent | 14dbe07a0174ea6ad8bd10878615e8aea79b32a7 (diff) |
Change the magic formulae in charge of setting the correct defines
for cpu, mmu, and cache attributes from a mandatory include file to
the kernel makefile. This saves some cpp cycles and removes forced
dependencies on hp300spu.h.
millert@ does not like but does not object either.
Diffstat (limited to 'sys/arch/hp300/include/hp300spu.h')
-rw-r--r-- | sys/arch/hp300/include/hp300spu.h | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/sys/arch/hp300/include/hp300spu.h b/sys/arch/hp300/include/hp300spu.h index 5b81e18b1a3..1663f1cd27c 100644 --- a/sys/arch/hp300/include/hp300spu.h +++ b/sys/arch/hp300/include/hp300spu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: hp300spu.h,v 1.4 2001/08/26 00:15:37 miod Exp $ */ +/* $OpenBSD: hp300spu.h,v 1.5 2001/11/04 02:58:03 miod Exp $ */ /* $NetBSD: hp300spu.h,v 1.2 1997/05/01 05:26:48 thorpej Exp $ */ /*- @@ -79,52 +79,4 @@ extern int cpuspeed; /* CPU speed, in MHz */ extern int mmuid; /* MMU id */ #endif /* _KERNEL && ! _LOCORE */ -#ifdef _KERNEL - -/* - * This section associates hp300 model configurations with certain - * combinations of CPU, MMU, and cache. - */ - -/* - * CPU configuration. - */ -#if defined(HP320) || defined(HP330) || defined(HP350) -#define M68020 -#endif - -#if defined(HP340) || defined(HP345) || defined(HP360) || defined(HP370) || \ - defined(HP375) || defined(HP400) -#define M68030 -#endif - -#if defined(HP380) || defined(HP385) || defined(HP425) || defined(HP433) -#define M68040 -#endif - -/* - * MMU configuration. - */ -#if defined(HP320) || defined(HP350) -#define M68K_MMU_HP -#endif - -#if defined(HP330) || defined(M68030) || defined(M68040) -#define M68K_MMU_MOTOROLA -#endif - -/* - * Cache configuration. - */ -#if defined(M68K_MMU_HP) -#define CACHE_HAVE_VAC -#endif - -#if defined(HP345) || defined(HP360) || defined(HP370) || \ - defined(HP375) || defined(HP400) -#define CACHE_HAVE_PAC -#endif - -#endif /* _KERNEL */ - #endif /* _HP300_HP300SPU_H_ */ |