Re: iasl

Ducrot Bruno
2003-05-09T15:42:24Z

On Fri, May 09, 2003 at 04:17:25PM +0000, sjb wrote:
> Ducrot Bruno wrote:
>
> >grab acpica-unix from intel site instead, untar, go to 'compiler'
> >directory,
> >'make' and hopefully you will get iasl.
>
> D'oh! Why didn't I think of that?! *8-)
>
> >I do have trouble with bison version 1.75, but I guess that my bison
> >is broken ? With bison 1.31, all seems to be OK.
> >Plus, I got some random core dump with the latest one?
>
> Well .. mine compiled cleanly and ..
>
> ottaky@vaio:~/acpi> ./iasl -tc dsdt.asl
>
> Intel ACPI Component Architecture
> ASL Optimizing Compiler / AML Disassembler version 20030424 [May 7 2003]
> Copyright (C) 2000 - 2003 Intel Corporation
> Supports ACPI Specification Revision 2.0b
>
> dsdt.asl 529: Field(ECR_, AnyAcc, Lock, Preserve) {
> Error 1048 - ^ Host Operation Region
> requires ByteAcc access

It should be ByteAcc instead of AnyAcc

> dsdt.asl 1288: Field(PIUC, DWordAcc, Lock, Preserve) {
> Error 1047 - ^ Access width is greater than
> region size

Hard to tell. Need the PIUC definition:

OperationRegion(PIUC, ..., ..., ...)

and all the Field(s) (with their content) which
look like

Field(PIUC, ...) {
...
}

(but if PIUC is a OP defined as a PCI_Config, I would say that it should be
ByteAcc, or WordAcc. I doubt that it have to be DWordAcc).

>
> dsdt.asl 2122: If(\_OSI) {
> Error 1028 - Too few arguments ^ (\_OSI requires 1)
>
> dsdt.asl 2123: "Windows 2001"
> Error 1037 - parse error ^

It should be

If(\_OSI("Windows 2001")) {

and you may have to add:
extern (\_OSI)
(but I am not sure if it is OK with latest iasl).

BTW, could you try 'iasl -d mydsdt' in order to disassemble your DSDT, and
check if 'If (\_OSI ("Windows 2001"))' is correct ?

--
Ducrot Bruno

-- Which is worse: ignorance or apathy?
-- Don't know. Don't care.