summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-11 16:01:38 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-09-11 16:01:38 +0000
commit8bbfc3976cb48162250347bac4c0bbf0b926e27d (patch)
tree7f359ff551d69bb3b4faf568d2efae1e932f1e19 /sys/arch
parent1f3560cfef391387e4fbe5ec8bc8b96a9cee861c (diff)
provide a convinient reset label
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/hppa/hppa/machdep.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/machdep.c b/sys/arch/hppa/hppa/machdep.c
index a37eb44f5b7..a99b3e167f8 100644
--- a/sys/arch/hppa/hppa/machdep.c
+++ b/sys/arch/hppa/hppa/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.78 2002/09/11 15:55:58 mickey Exp $ */
+/* $OpenBSD: machdep.c,v 1.79 2002/09/11 16:01:37 mickey Exp $ */
/*
* Copyright (c) 1999-2002 Michael Shalayeff
@@ -946,6 +946,8 @@ boot(howto)
} else {
printf("rebooting...");
DELAY(1000000);
+ __asm __volatile(".export hppa_reset, entry\n\t"
+ ".label hppa_reset");
__asm __volatile("stwas %0, 0(%1)"
:: "r" (CMD_RESET), "r" (LBCAST_ADDR + iomod_command));
}