summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-06-06 15:38:50 +0000
committerderaadt <deraadt@openbsd.org>1999-06-06 15:38:50 +0000
commita2d63b0f5227433ebda9a32e186e92e0c4bc3dd4 (patch)
treea190148c608295c8491f5530adfb32fd0acce565
parentpmap callout changes for uvm; art (diff)
downloadwireguard-openbsd-a2d63b0f5227433ebda9a32e186e92e0c4bc3dd4.tar.xz
wireguard-openbsd-a2d63b0f5227433ebda9a32e186e92e0c4bc3dd4.zip
use __sparc__
-rw-r--r--sys/compat/svr4/svr4_exec.h4
-rw-r--r--sys/compat/svr4/svr4_stat.c4
-rw-r--r--sys/dev/ic/midway.c4
-rw-r--r--sys/dev/ic/midwayreg.h6
4 files changed, 9 insertions, 9 deletions
diff --git a/sys/compat/svr4/svr4_exec.h b/sys/compat/svr4/svr4_exec.h
index 0ccfb6d2acd..7b4cb731339 100644
--- a/sys/compat/svr4/svr4_exec.h
+++ b/sys/compat/svr4/svr4_exec.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_exec.h,v 1.3 1998/02/22 01:07:59 niklas Exp $ */
+/* $OpenBSD: svr4_exec.h,v 1.4 1999/06/06 15:38:50 deraadt Exp $ */
/* $NetBSD: svr4_exec.h,v 1.7 1995/07/02 06:16:06 christos Exp $ */
/*
@@ -50,7 +50,7 @@
#define SVR4_INTERP_ADDR 0x01000000
#endif
-#ifdef sparc
+#ifdef __sparc__
/*
* Here programs load at 0x00010000, so I load the interpreter far after
* the end of the data segment.
diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c
index a00b1e28814..39ba7613b27 100644
--- a/sys/compat/svr4/svr4_stat.c
+++ b/sys/compat/svr4/svr4_stat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: svr4_stat.c,v 1.11 1998/02/09 04:32:13 tholo Exp $ */
+/* $OpenBSD: svr4_stat.c,v 1.12 1999/06/06 15:38:51 deraadt Exp $ */
/* $NetBSD: svr4_stat.c,v 1.21 1996/04/22 01:16:07 christos Exp $ */
/*
@@ -60,7 +60,7 @@
#include <compat/svr4/svr4_time.h>
#include <compat/svr4/svr4_socket.h>
-#ifdef sparc
+#ifdef __sparc__
/*
* Solaris-2.4 on the sparc has the old stat call using the new
* stat data structure...
diff --git a/sys/dev/ic/midway.c b/sys/dev/ic/midway.c
index 48a3121a9b7..2f58b6928a3 100644
--- a/sys/dev/ic/midway.c
+++ b/sys/dev/ic/midway.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midway.c,v 1.24 1999/01/11 05:12:17 millert Exp $ */
+/* $OpenBSD: midway.c,v 1.25 1999/06/06 15:39:15 deraadt Exp $ */
/* (sync'd to midway.c 1.68) */
/*
@@ -144,7 +144,7 @@
#endif
-#if !defined(sparc) && !defined(__FreeBSD__)
+#if !defined(__sparc__) && !defined(__FreeBSD__)
#include <machine/bus.h>
#endif
diff --git a/sys/dev/ic/midwayreg.h b/sys/dev/ic/midwayreg.h
index 13a28ca7d5c..e18aca797c1 100644
--- a/sys/dev/ic/midwayreg.h
+++ b/sys/dev/ic/midwayreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: midwayreg.h,v 1.7 1997/03/20 22:03:04 chuck Exp $ */
+/* $OpenBSD: midwayreg.h,v 1.8 1999/06/06 15:39:16 deraadt Exp $ */
/*
* m i d w a y r e g . h
@@ -8,7 +8,7 @@
*
*/
-#if defined(sparc) || defined(__FreeBSD__)
+#if defined(__sparc__) || defined(__FreeBSD__)
/* XXX: gross. netbsd/sparc doesn't have machine/bus.h yet. */
typedef void * bus_space_tag_t;
typedef u_int32_t pci_chipset_tag_t;
@@ -21,7 +21,7 @@ typedef caddr_t bus_addr_t;
#define bus_space_write_4(t, h, o, v) \
((void) t, ((void)(*(volatile u_int32_t *)((h) + (o)) = (v))))
-#if defined(sparc)
+#if defined(__sparc__)
#define vtophys(x) ((u_int32_t)(x)) /* sun4c dvma */
#endif