Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Define preprocessor symbols (__HAVE_OPENFIRMWARE_VA...
details: https://anonhg.NetBSD.org/src/rev/ed1ed718e43c
branches: trunk
changeset: 1022803:ed1ed718e43c
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Aug 08 00:53:39 2021 +0000
description:
Define preprocessor symbols (__HAVE_OPENFIRMWARE_VARIANT_AAPL and
__HAVE_OPENFIRMWARE_VARIANT_SUNW) that lets generic OpenFirmware
code deal with differences / quirks among implementation variants.
diffstat:
sys/arch/macppc/include/types.h | 3 ++-
sys/arch/sparc64/include/types.h | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r d6062378aaa9 -r ed1ed718e43c sys/arch/macppc/include/types.h
--- a/sys/arch/macppc/include/types.h Sun Aug 08 00:02:02 2021 +0000
+++ b/sys/arch/macppc/include/types.h Sun Aug 08 00:53:39 2021 +0000
@@ -1,5 +1,6 @@
-/* $NetBSD: types.h,v 1.14 2011/07/17 23:23:53 dyoung Exp $ */
+/* $NetBSD: types.h,v 1.15 2021/08/08 00:53:39 thorpej Exp $ */
#include <powerpc/types.h>
#define __HAVE_NEW_STYLE_BUS_H
+#define __HAVE_OPENFIRMWARE_VARIANT_AAPL
diff -r d6062378aaa9 -r ed1ed718e43c sys/arch/sparc64/include/types.h
--- a/sys/arch/sparc64/include/types.h Sun Aug 08 00:02:02 2021 +0000
+++ b/sys/arch/sparc64/include/types.h Sun Aug 08 00:53:39 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.28 2019/04/06 03:06:27 thorpej Exp $ */
+/* $NetBSD: types.h,v 1.29 2021/08/08 00:53:39 thorpej Exp $ */
#ifndef _SPARC64_TYPES_H_
#define _SPARC64_TYPES_H_
@@ -11,5 +11,6 @@
#define __HAVE_COMPAT_NETBSD32
#define __HAVE_UCAS_FULL
+#define __HAVE_OPENFIRMWARE_VARIANT_SUNW
#endif
Home |
Main Index |
Thread Index |
Old Index