Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/include - no need to define MACHINE_ARCH in MD ...



details:   https://anonhg.NetBSD.org/src/rev/89fe10cbc6b4
branches:  trunk
changeset: 763393:89fe10cbc6b4
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Fri Mar 18 16:17:22 2011 +0000

description:
- no need to define MACHINE_ARCH in MD header
- include <mips/mips_param.h> after MACHINE is defined

diffstat:

 sys/arch/arc/include/param.h |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r 68b6bd47ced8 -r 89fe10cbc6b4 sys/arch/arc/include/param.h
--- a/sys/arch/arc/include/param.h      Fri Mar 18 16:14:49 2011 +0000
+++ b/sys/arch/arc/include/param.h      Fri Mar 18 16:17:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.28 2011/03/06 20:34:57 he Exp $    */
+/*     $NetBSD: param.h,v 1.29 2011/03/18 16:17:22 tsutsui Exp $       */
 /*      $OpenBSD: param.h,v 1.9 1997/04/30 09:54:15 niklas Exp $ */
 
 /*
@@ -44,6 +44,9 @@
 /*
  * Machine-dependent constants (VM, etc) common across MIPS cpus
  */
+#define        _MACHINE        arc
+#define        MACHINE         "arc"
+
 #include <mips/mips_param.h>
 
 /*
@@ -53,13 +56,6 @@
  *     Deskstation Tyne
  *     Etc
  */
-#define        _MACHINE_ARCH   mipsel
-#define        MACHINE_ARCH    "mipsel"
-#define        _MACHINE        arc
-#ifdef _KERNEL
-#define        MACHINE         "arc"
-#endif
-
 #define        KERNBASE        0x80000000      /* start of kernel virtual */
 #define        BTOPKERNBASE    ((u_long)KERNBASE >> PGSHIFT)
 



Home | Main Index | Thread Index | Old Index