summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2001-06-11 00:29:49 +0000
committermiod <miod@openbsd.org>2001-06-11 00:29:49 +0000
commitc6251b1721e89abb31f0a7bf38d03740a4ed68ca (patch)
tree61d21462149dbd64acfee784a6689e289fa7e59d
parentdetailed ICMP_PARAMPROB printing; jakob@ ok (diff)
downloadwireguard-openbsd-c6251b1721e89abb31f0a7bf38d03740a4ed68ca.tar.xz
wireguard-openbsd-c6251b1721e89abb31f0a7bf38d03740a4ed68ca.zip
Being able to compile sun4 (non-sun4c non-4m) kernels doesn't hurt.
-rw-r--r--sys/arch/sparc/dev/if_le.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c
index 24c5b4bfe9e..df6591847bb 100644
--- a/sys/arch/sparc/dev/if_le.c
+++ b/sys/arch/sparc/dev/if_le.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le.c,v 1.17 2001/01/15 23:23:57 jason Exp $ */
+/* $OpenBSD: if_le.c,v 1.18 2001/06/11 00:29:49 miod Exp $ */
/* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */
/*-
@@ -478,10 +478,12 @@ leattach(parent, self, aux)
{
u_long laddr;
+#if defined(SUN4C) || defined(SUN4M)
if (sbuschild && CPU_ISSUN4M)
laddr = (u_long)dvma_malloc_space(MEMSIZE,
&sc->sc_mem, M_NOWAIT, M_SPACE_D24);
else
+#endif
laddr = (u_long)dvma_malloc(MEMSIZE,
&sc->sc_mem, M_NOWAIT);
#if defined (SUN4M)