Source-Changes-HG archive

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

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



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

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

diffstat:

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

diffs (21 lines):

diff -r 7d5dce803bd0 -r af75bc13fc94 sys/arch/powerpc/include/param.h
--- a/sys/arch/powerpc/include/param.h  Sat Mar 05 14:26:01 2011 +0000
+++ b/sys/arch/powerpc/include/param.h  Sat Mar 05 14:27:48 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.h,v 1.22 2010/03/22 02:14:28 mrg Exp $   */
+/*     $NetBSD: param.h,v 1.23 2011/03/05 14:27:48 matt Exp $  */
 
 /*-
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -45,7 +45,11 @@
 
 /*
  * Machine dependent constants for PowerPC (32-bit only currently)
+ * For userland regardless of port, force MACHINE to be "powerpc"
  */
+#ifndef _KERNEL
+#undef MACHINE
+#endif
 #ifndef MACHINE
 #define        MACHINE         "powerpc"
 #endif



Home | Main Index | Thread Index | Old Index