summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authornjl <njl@FreeBSD.org>2004-10-11 05:39:15 +0000
committernjl <njl@FreeBSD.org>2004-10-11 05:39:15 +0000
commitabd4abd5bde7b89f9bfa1f389c3cd5f5394d9631 (patch)
treea73d71113eb92df36ffa37efd3031bb3c11a1489 /sys/amd64
parentbc7aea493bcaeac179e22ccbf789af1f6fc3a312 (diff)
downloadFreeBSD-src-abd4abd5bde7b89f9bfa1f389c3cd5f5394d9631.zip
FreeBSD-src-abd4abd5bde7b89f9bfa1f389c3cd5f5394d9631.tar.gz
Move the code for halting the CPU (acpi_cpu_c1) into machdep files.
This removes the last MD portion of acpi_cpu.c. MFC after: 2 weeks
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/acpica/acpi_machdep.c6
-rw-r--r--sys/amd64/include/acpica_machdep.h3
2 files changed, 8 insertions, 1 deletions
diff --git a/sys/amd64/acpica/acpi_machdep.c b/sys/amd64/acpica/acpi_machdep.c
index 352842f..1a3263c 100644
--- a/sys/amd64/acpica/acpi_machdep.c
+++ b/sys/amd64/acpica/acpi_machdep.c
@@ -61,3 +61,9 @@ acpi_machdep_quirks(int *quirks)
{
return (0);
}
+
+void
+acpi_cpu_c1()
+{
+ __asm __volatile("sti; hlt");
+}
diff --git a/sys/amd64/include/acpica_machdep.h b/sys/amd64/include/acpica_machdep.h
index 07029e1..14cf85a 100644
--- a/sys/amd64/include/acpica_machdep.h
+++ b/sys/amd64/include/acpica_machdep.h
@@ -73,6 +73,7 @@ extern int acpi_release_global_lock(uint32_t *lock);
#define COMPILER_DEPENDENT_INT64 long
#define COMPILER_DEPENDENT_UINT64 unsigned long
-void acpi_SetDefaultIntrModel(int model);
+void acpi_SetDefaultIntrModel(int model);
+void acpi_cpu_c1(void);
#endif /* __ACPICA_MACHDEP_H__ */
OpenPOWER on IntegriCloud