[PATCH] handle fadt->si_cmd == 0
DORMANTno replies
From: Jesse Barnes <hidden>
Date: 2003-06-06 17:17:30
In reading the spec, it looks like if a particular ACPI implementation leaves fadt->si_cmd equal to 0, that means the platform doesn't support system management mode, which seems legal. I needed this patch for my system. With the patch applied, I'm able to see /proc/acpi and the interpreter appears to start. Is this legal? Thanks, Jesse
--- /usr/tmp/TmpDir.30375-0/linux/drivers/acpi/hardware/hwacpi.c_1.10 Fri Jun 6 10:24:23 2003
+++ linux/drivers/acpi/hardware/hwacpi.c Tue Jun 3 10:48:31 2003@@ -180,6 +180,10 @@ ACPI_FUNCTION_TRACE ("Hw_get_mode"); + /* If there's no smi_cmd port, then it's ACPI only hw */ + if (!acpi_gbl_FADT->smi_cmd) + return_VALUE (ACPI_SYS_MODE_ACPI); + status = acpi_get_register (ACPI_BITREG_SCI_ENABLE, &value, ACPI_MTX_LOCK); if (ACPI_FAILURE (status)) { return_VALUE (ACPI_SYS_MODE_LEGACY); -------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.