summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordownsj <downsj@openbsd.org>1997-06-22 23:54:24 +0000
committerdownsj <downsj@openbsd.org>1997-06-22 23:54:24 +0000
commit994a9aa6bd618c170c6454f17a237a2c37ef0eea (patch)
treecc2884483857d793c7b03e88000a93916acd8545
parenterrno can be set to EAGAIN in conjunction with O_SHLOCK/O_EXLOCK (diff)
downloadwireguard-openbsd-994a9aa6bd618c170c6454f17a237a2c37ef0eea.tar.xz
wireguard-openbsd-994a9aa6bd618c170c6454f17a237a2c37ef0eea.zip
Only call powerdown() if SUN4M is defined.
-rw-r--r--sys/arch/sparc/sparc/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index ad2c58e89d8..e3751a8dd08 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.23 1997/06/22 22:33:53 downsj Exp $ */
+/* $OpenBSD: machdep.c,v 1.24 1997/06/22 23:54:24 downsj Exp $ */
/* $NetBSD: machdep.c,v 1.64 1996/05/19 04:12:56 mrg Exp $ */
/*
@@ -681,10 +681,12 @@ boot(howto)
(void) splhigh(); /* ??? */
if ((howto & RB_HALT) || (howto & RB_POWERDOWN)) {
doshutdownhooks();
+#if defined(SUN4M)
if (howto & RB_POWERDOWN) {
printf("attempting to power down...\n");
powerdown();
}
+#endif
printf("halted\n\n");
romhalt();
}