Jump to content

Help on syntax error of dsdt


electrovalent
 Share

5 posts in this topic

Recommended Posts


                    OperationRegion (RSSC, SystemMemory, 0xFED11100, 0xFF)
                    Field (RSSC, ByteAcc, NoLock, Preserve)
                    {
                        Offset (0xB8), 
                            ,   30, 
                        RS2E,   1
                    }

                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Noop
                    Name (SWIT, One)
                    Name (CRTA, One)
                    Name (LCDA, One)
                    Name (TVAA, One)

Remove all Noop lines.

It will generate 33 new errors. 

# _PLD is supposed to return a variable length Package of Buffers
into_all all code_regex (Name\s*\(_PLD,\s*)Buffer(\s\([^\)].*\)[^\)]*) replaceall_matched
begin
%1Package() { Buffer%2 }
end;

# _PLD return case, courtesy stargazer418
into_all all code_regex (Return\s)\(Buffer(\s\(0x10\)[^\)]*) replaceall_matched
begin
%1(Package() { Buffer%2}
end;

Fixes 28 of them.

 

3 are not defined locals, so those lines can be removed also. 

                    ,, _Y0C, AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0xFEBFFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x14000000,         // Length
                    ,, _Y0E, AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0xFED40000,         // Range Minimum
                    0xFED44FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00000000,         // Length

Length is not defined properly, so i kept increasing/decreasing until the errors where gone.

                   ,, _Y0C, AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0x00000000,         // Range Minimum
                    0xFEBFFFFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0xFEC00000,         // Length
                    ,, _Y0E, AddressRangeMemory, TypeStatic)
                DWordMemory (ResourceProducer, PosDecode, MinFixed, MaxFixed, Cacheable, ReadWrite,
                    0x00000000,         // Granularity
                    0xFED40000,         // Range Minimum
                    0xFED44FFF,         // Range Maximum
                    0x00000000,         // Translation Offset
                    0x00005000,         // Length
                    ,, _Y0D, AddressRangeMemory, TypeStatic)
            })

System DSDT.zip

  • Like 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...