Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/include first steps towards fujitsu SPARC64...



details:   https://anonhg.NetBSD.org/src/rev/7f39af179299
branches:  trunk
changeset: 764920:7f39af179299
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu May 12 05:41:50 2011 +0000

description:
first steps towards fujitsu SPARC64 support:

- add CPU_SUN4US and CPU_SUN4V defines
- re-introduce "cputyp" and use it for sun4u/sun4us/sun4v

diffstat:

 sys/arch/sparc64/include/param.h |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r 479a7a43d875 -r 7f39af179299 sys/arch/sparc64/include/param.h
--- a/sys/arch/sparc64/include/param.h  Thu May 12 01:59:16 2011 +0000
+++ b/sys/arch/sparc64/include/param.h  Thu May 12 05:41:50 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.44 2010/02/08 19:02:32 joerg Exp $ */
+/*     $NetBSD: param.h,v 1.45 2011/05/12 05:41:50 mrg Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -230,6 +230,10 @@
 
 extern int cputyp;
 
+#define CPU_ISSUN4U     (cputyp == CPU_SUN4U)
+#define CPU_ISSUN4US    (cputyp == CPU_SUN4US)
+#define CPU_ISSUN4V     (cputyp == CPU_SUN4V)
+
 #endif /* _LOCORE */
 #endif /* _KERNEL */
 
@@ -240,6 +244,8 @@
 #define CPU_SUN4C      1
 #define CPU_SUN4M      2
 #define CPU_SUN4U      3
+#define CPU_SUN4US     4
+#define CPU_SUN4V      5
 
 /*
  * Shorthand CPU-type macros. Enumerate all eight cases.
@@ -255,7 +261,6 @@
  * extra memory references they'll generate.
  */
 
-#define CPU_ISSUN4U    (1)
 #define CPU_ISSUN4M    (0)
 #define CPU_ISSUN4C    (0)
 #define CPU_ISSUN4     (0)



Home | Main Index | Thread Index | Old Index