* pacpidump and iasl
@ 2003-12-03 22:40 Richard Black
0 siblings, 0 replies; only message in thread
From: Richard Black @ 2003-12-03 22:40 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Han Duong
A difference in dumping the DSDT table found between
pacpidump and iasl. When compiling the pacpidump
version produces an error whereas the dump from iasl
compiles without error.
Original email below.
Sincerely,
Richard Black
http://www.cpqlinux.com/acpi-howto.html
-------- Original Message --------
Subject: ACPI Howto (possible errata)
Date: Wed, 3 Dec 2003 15:32:03 -0600 (CST)
From: Han Duong <handuong-d0mtIEKrxfl4piUD7e9S/g@public.gmane.org>
To: <richard.black-VXdhtT5mjnY@public.gmane.org>
Hi,
I was reading the ACPI howto from
http://www.cpqlinux.com/acpi-howto.html#downloads
and noticed that the program "pacpidump" DOES NOT give the same output as
using Intel's "iasl" program with the "-d" option. I own a Sony Vaio
V505BX and was curious about whether my DSDT was broken (the
/proc/acpi/fan directory exists, but is empty; everything else seems to
work fine) To make a long story short, "pacpidump" outputs the following
snippet of code for the DSDT table:
...
Method(CKOS) {
If(CondRefOf(_OSI, Local0)) {
If(\_OSI) {
"Windows 2001"
Store(0x4, Local4)
}
}
...
which produces an error when compiling using "isal -tc" shown below:
dsdt.asl 2171: If(\_OSI) {
Error 1028 - ^ Too few arguments (\_OSI requires 1)
dsdt.asl 2172: "Windows 2001"
Error 1037 - ^ parse error, unexpected
PARSEOP_STRING_LITERAL
On the other hand, using "iasl -d dsdt.dat" produces the following
corresponding code snippet:
...
Method (CKOS, 0, NotSerialized)
{
If (CondRefOf (_OSI, Local0))
{
If (\_OSI ("Windows 2001"))
{
Store (0x04, Local4)
}
}
...
Since "iasl -tc" produces two errors (both referrincing the code block
shown above when I use the output from "pacpidump" whereas no errors are
produced using the output from "tiasl -d" I think one might conclude that
"pacpidump" might not be as reliable for non-FreeBSD systems (I am
compiling for Linux 2.4.23). Perhaps Intel's tools should be the preferred
choice for DSDT disassembly?
Oh, in case you're wondering, pacpidump was obtained from
http://people.freebsd.org/~takawata/pacpidump.tar.gz
The version for Intel's iasl is 20030918 and is available from
http://developer.intel.com/technology/iapc/acpi/downloads.htm
Best wishes,
Han Duong
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-12-03 22:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 22:40 pacpidump and iasl Richard Black
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox