From: jbarnes-sJ/iWh9BUns@public.gmane.org (Jesse Barnes)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [PATCH] handle fadt->si_cmd == 0
Date: Fri, 6 Jun 2003 10:17:30 -0700 [thread overview]
Message-ID: <20030606171730.GD1349@sgi.com> (raw)
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.
next reply other threads:[~2003-06-06 17:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-06 17:17 Jesse Barnes [this message]
[not found] ` <20030606171730.GD1349-sJ/iWh9BUns@public.gmane.org>
2003-06-09 0:29 ` [PATCH] handle fadt->si_cmd == 0 Takayoshi Kochi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030606171730.GD1349@sgi.com \
--to=jbarnes-sj/iwh9buns@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox