diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-05-31 20:00:01 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2013-05-31 20:00:01 +0000 |
commit | 312d04a8fc1e404330af78d744a123e07d13e99e (patch) | |
tree | 960b035c1ea6de95033769c8f7c46f9f2d046c3a /sys/arch/i386/include | |
parent | aac6227b729931fcaf728dfe6eb363f690028d25 (diff) |
We need to halt the APs on MP hibernate resume or else they will be
executing code possibly causing side effects during the image unpack
operation. But before we can halt the APs, we need to complete their init
(as they will be hatched but idling, possibly with interrupts off).
Introduces MD function hibernate_quiesce_cpus to do this, called from the
MI hibernate resume code.
ok deraadt
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/hibernate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/arch/i386/include/hibernate.h b/sys/arch/i386/include/hibernate.h index d4ac3707d35..fd18476862c 100644 --- a/sys/arch/i386/include/hibernate.h +++ b/sys/arch/i386/include/hibernate.h @@ -29,3 +29,6 @@ void hibernate_resume_machdep(void); void hibernate_activate_resume_pt_machdep(void); void hibernate_enable_intr_machdep(void); void hibernate_disable_intr_machdep(void); +#ifdef MULTIPROCESSOR +void hibernate_quiesce_cpus(void); +#endif /* MULTIPROCESSOR */ |