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

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

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

8 bits = 1 byte (CreateByteField)

-Donations-

PayPal HERE - Stripe HERE - BuyMeaCoffee HERE - Mercado Livre HERE

Skrill danielnmaldonado@gmail.com - BTC 33HeGCuCSh4tUBqdYkQqKpSDa1E7WeAJQ3

PicPay @danielnmaldonado - PiX @danielnmaldonado@gmail.com

Premium Users HERE - Problems with Paypal HERE

xcd5u2Y.png

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.





×
  • Create New...