summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-06-22 22:33:54 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-06-22 22:33:54 +0000
commita0a1ded683b727e1a01509b079732818d5aae4c2 (patch)
tree647d31506249320d6c587e1d551bab8a976642bc /sys/arch/sparc
parent1263294a12e93f5bee2bcc89b64cf02da71de8af (diff)
Support RB_POWERDOWN (calls powerdown(), then romhalt(). If powerdown() is
supported on that machine, it just turns off...)
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/sparc/machdep.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c
index 081e5be5204..ad2c58e89d8 100644
--- a/sys/arch/sparc/sparc/machdep.c
+++ b/sys/arch/sparc/sparc/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.22 1997/06/11 10:32:11 grr Exp $ */
+/* $OpenBSD: machdep.c,v 1.23 1997/06/22 22:33:53 downsj Exp $ */
/* $NetBSD: machdep.c,v 1.64 1996/05/19 04:12:56 mrg Exp $ */
/*
@@ -679,8 +679,12 @@ boot(howto)
}
}
(void) splhigh(); /* ??? */
- if (howto & RB_HALT) {
+ if ((howto & RB_HALT) || (howto & RB_POWERDOWN)) {
doshutdownhooks();
+ if (howto & RB_POWERDOWN) {
+ printf("attempting to power down...\n");
+ powerdown();
+ }
printf("halted\n\n");
romhalt();
}