summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-11-01 00:14:44 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-11-01 00:14:44 +0000
commited4ccafd41e2fa787dbaef5f0df177ad35ea8481 (patch)
treea03f176c500169df9470cbb6ab1908e1d3071434 /sys/arch
parent53c2c6f1a7ad008035ff20481dd62bdefe7947a3 (diff)
add a missing delay after printf on halt[-p], proper arg for a cold hook
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/machdep.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index 52f6a181118..4ea22834f39 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.87 2002/10/22 19:35:45 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.88 2002/11/01 00:14:43 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -941,11 +941,13 @@ boot(howto)
if (howto & RB_HALT) {
if (howto & RB_POWERDOWN && cold_hook) {
printf("Powering off...");
- (*cold_hook)(HPPA_COLD_COLD);
+ DELAY(1000000);
+ (*cold_hook)(HPPA_COLD_OFF);
DELAY(1000000);
}
printf("System halted!\n");
+ DELAY(1000000);
__asm __volatile("stwas %0, 0(%1)"
:: "r" (CMD_STOP), "r" (LBCAST_ADDR + iomod_command));
} else {