From 9c1253759d48324639d599b362997fcfc87324b2 Mon Sep 17 00:00:00 2001 From: Mike Larkin Date: Sat, 1 Jun 2013 22:22:14 +0000 Subject: Introduce a new amd64 IPI, x86_ipi_halt_realmode to park CPUS into real mode and halt them. Needed for hibernate. ok deraadt@ kettenis@ "there's no risk there" --- sys/arch/amd64/include/intrdefs.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch/amd64/include') diff --git a/sys/arch/amd64/include/intrdefs.h b/sys/arch/amd64/include/intrdefs.h index 0d76886cc95..b08eda38d1b 100644 --- a/sys/arch/amd64/include/intrdefs.h +++ b/sys/arch/amd64/include/intrdefs.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intrdefs.h,v 1.10 2013/05/16 16:20:00 kettenis Exp $ */ +/* $OpenBSD: intrdefs.h,v 1.11 2013/06/01 22:22:13 mlarkin Exp $ */ /* $NetBSD: intrdefs.h,v 1.2 2003/05/04 22:01:56 fvdl Exp $ */ #ifndef _AMD64_INTRDEFS_H @@ -79,12 +79,14 @@ #define X86_IPI_MTRR 0x00000020 #define X86_IPI_SETPERF 0x00000040 #define X86_IPI_DDB 0x00000080 +#define X86_IPI_HALT_REALMODE 0x00000100 -#define X86_NIPI 8 +#define X86_NIPI 9 #define X86_IPI_NAMES { "halt IPI", "nop IPI", "FPU flush IPI", \ "FPU synch IPI", "TLB shootdown IPI", \ - "MTRR update IPI", "setperf IPI", "ddb IPI" } + "MTRR update IPI", "setperf IPI", "ddb IPI", \ + "realmode halt IPI" } #define IREENT_MAGIC 0x18041969 -- cgit v1.2.3