Jump to content
toleda

Compiler Warning

Recommended Posts

Applied the patches to fix the errors and warnings on an extract. Successfully compile with no errors or warnings and save the .aml. Open the .aml file with DSDT Editor, compile and get this warning:

2138 Warning ResourceTag larger than Field (Tag: 64 bits, Field: 32 bits)

on this line:

2138 CreateDWordField (BUF0, \_SB.PCI0._Y0F._LEN, MSLN)


Why does the warning appear when the dsdt is opened after a successful compile? I'm sure this issue is trivial, however, Is there a fix for this warning? dsdt attached.

test.aml.zip

Link to comment
Share on other sites

I guess you have to replace CreateDWordField by CreateQWordField. This warning is only issued by recent versions of IASL.

 

WORD(16 bits/2 bytes)

DWORD(32 bits/4 bytes)

QWORD(64 bits/8 bytes)

http://en.wikipedia.org/wiki/Word_%28computer_architecture%29

 

into method label _CRS parent_label PCI0 code_regex CreateDWordField\s\(BUF0,\s\\_SB.PCI0._Y0F._LEN,\sMSLN\) replace_matched begin CreateQWordField (BUF0, \\_SB.PCI0._Y0F._LEN, MSLN) end

ASUS N53Jq • CPU: Intel Core i7-740QM 1.73GHz • RAM: 6,0GB • HD: 500GB • GPU: GeForce GT 425M 1GB 1920x1080 • OS: OS X 10.8.4 • Linux Mint 15 • Windows 8

Link to comment
Share on other sites

Hello,


Would you mind helping me also?


instead of:


2138 Warning ResourceTag larger than Field (Tag: 64 bits, Field: 32 bits)


I get a similar warning:


2138 Warning ResourceTag larger than Field (Tag: 16 bits, Field: 8 bits)


How do I go about fixing this? You gave commands/code for 16, 32, and 64 bits, but not 8.


I would never have even have thought that 8 bit would be used... shows you how little I know. ;)



Thanks so much for your time, and as always with anybody's help, ALL input is APPRECIATED.


Namidar

Link to comment
Share on other sites

hello


try to replace


to


CreateDWordField


and the warnings is not a problem, problem is the errors


if u only get warnings


save it DSDT.aml


and test it


good hack

PB Easy Note TM 86 - i5 430 M - H55M - Ram - 6 GB - Alc272 - Radeon HD 5470 512 QE/CI

Lenovo G500 - i5 3230m - HM77 - Ram - 8 GB - Conexant audio - HD 4000

My OS X Files 

Link to comment
Share on other sites

Esse guia acabou de me ajudar com um warning...


Exemplo:


00 Tag: 16 bits, Field: 8bits

02 Tag: 16 bits, Field: 8bits


erro similar nesse parágrafo:


00 CreateByteField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MIN, IOLO)

01 CreateByteField (BUF1, 0x03, IOHI)

02 CreateByteField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MAX, IORL)

03 CreateByteField (BUF1, 0x05, IORH)

04 CreateWordField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y02._INT, IRQW)


correção:


00 CreateWordField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MIN, IOLO)

01 CreateByteField (BUF1, 0x03, IOHI)

02 CreateWordField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y01._MAX, IORL)

03 CreateByteField (BUF1, 0x05, IORH)

04 CreateWordField (BUF1, \_SB.PCI0.PX40.UAR1._CRS._Y02._INT, IRQW)


Obrigado

ASUS P6X58D-E/12GB/i7-960 8MB 3.20GHz/NVIDIA GTX 650/WINDOWS 10/YOSEMITE

X87-DELL-16GB-DDR3-1600MHZ/XEON E3-1220v3 8MB/NVIDIA GTX1050/WINDOWS 10/XUBUNTU/OSX-SIERRA

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now




×
  • Create New...
The popup will be closed in 15 seconds...