Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc/include Add a macro to test if the system use...



details:   https://anonhg.NetBSD.org/src/rev/4c71723af4c4
branches:  trunk
changeset: 534117:4c71723af4c4
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Wed Jul 17 06:19:45 2002 +0000

description:
Add a macro to test if the system uses the SRMMU (Sun4M || Sun4D).

diffstat:

 sys/arch/sparc/include/param.h |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 06a1f6298148 -r 4c71723af4c4 sys/arch/sparc/include/param.h
--- a/sys/arch/sparc/include/param.h    Wed Jul 17 06:17:20 2002 +0000
+++ b/sys/arch/sparc/include/param.h    Wed Jul 17 06:19:45 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.56 2002/07/17 06:17:20 thorpej Exp $ */
+/*     $NetBSD: param.h,v 1.57 2002/07/17 06:19:45 thorpej Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -272,4 +272,10 @@
 #      define PGSHIFT          pgshift
 #endif
 
+/*
+ * Step 4: Sun4M and Sun4D systems have an SRMMU.  Define some
+ * short-hand for this.
+ */
+#define        CPU_HAS_SRMMU           (CPU_ISSUN4M || CPU_ISSUN4D)
+
 #endif /* _KERNEL || _STANDALONE */



Home | Main Index | Thread Index | Old Index