Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/m68k/include If _KERNEL is not defined, force MACHI...



details:   https://anonhg.NetBSD.org/src/rev/c1325ec55c2a
branches:  trunk
changeset: 762904:c1325ec55c2a
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Mar 05 14:32:32 2011 +0000

description:
If _KERNEL is not defined, force MACHINE to be "m68k".  Userland should be
using uname/sysctl to get this value.

diffstat:

 sys/arch/m68k/include/param.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r af75bc13fc94 -r c1325ec55c2a sys/arch/m68k/include/param.h
--- a/sys/arch/m68k/include/param.h     Sat Mar 05 14:27:48 2011 +0000
+++ b/sys/arch/m68k/include/param.h     Sat Mar 05 14:32:32 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.18 2011/02/08 20:20:16 rmind Exp $ */
+/*     $NetBSD: param.h,v 1.19 2011/03/05 14:32:32 matt Exp $  */
 
 /*
  * Copyright (c) 1988 University of Utah.
@@ -51,6 +51,10 @@
 #ifndef        MID_MACHINE
 #define        MID_MACHINE     MID_M68K
 #endif
+#ifndef _KERNEL
+#undef MACHINE
+#define MACHINE "m68k"
+#endif
 
 /*
  * Round p (pointer or byte index) up to a correctly-aligned value for all



Home | Main Index | Thread Index | Old Index