summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/hibernate.h
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2014-07-09 11:37:17 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2014-07-09 11:37:17 +0000
commit0053cf4ab1127d6994edc86edc446e1655c33a16 (patch)
treeb723970471664a024b1f3c53478da817f5e864b7 /sys/arch/amd64/include/hibernate.h
parent7a60749ed5233c0bbfa2014ba2cbd5e8265ee395 (diff)
Fixes a hibernate issue wherein we locked the kernel lock while hatching
but then parked ourselves in real mode without completing acquisition of said lock. Also removes the park routine from i386 since we don't need it (the APs are already parked at the time we start unpack). discussed with and ok kettenis@, also ok deraadt@
Diffstat (limited to 'sys/arch/amd64/include/hibernate.h')
-rw-r--r--sys/arch/amd64/include/hibernate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/amd64/include/hibernate.h b/sys/arch/amd64/include/hibernate.h
index 9d620add2cf..cfcb812ff78 100644
--- a/sys/arch/amd64/include/hibernate.h
+++ b/sys/arch/amd64/include/hibernate.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hibernate.h,v 1.5 2014/05/31 06:30:16 mlarkin Exp $ */
+/* $OpenBSD: hibernate.h,v 1.6 2014/07/09 11:37:16 mlarkin Exp $ */
/*
* Copyright (c) 2011 Mike Larkin <mlarkin@openbsd.org>
@@ -32,4 +32,5 @@ void hibernate_enable_intr_machdep(void);
void hibernate_disable_intr_machdep(void);
#ifdef MULTIPROCESSOR
void hibernate_quiesce_cpus(void);
+void hibernate_drop_to_real_mode(void);
#endif /* MULTIPROCESSOR */