olarila.com

Mac OS X x86 - Hackintosh
It is currently 24 May 2013, 09:29

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Compiler Warning
PostPosted: 07 Jul 2012, 03:08 
GeekInTraining

Joined: 24 Nov 2011, 02:46
Posts: 16
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.


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 07 Jul 2012, 15:49 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3757
I guess you have to replace CreateDWordField by CreateQWordField. This warning is only issued by recent versions of IASL.

Quote:
WORD(16 bits/2 bytes)
DWORD(32 bits/4 bytes)
QWORD(64 bits/8 bytes)

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

Code:
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.3 • Linux Mint 14 • Windows 8


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 08 Jul 2012, 20:07 
GeekInTraining

Joined: 24 Nov 2011, 02:46
Posts: 16
Cassio wrote:
I guess you have to replace CreateDWordField by CreateQWordField. This warning is only issued by recent versions of IASL.

It showed up with DSDT Editor v0.8. Works perfectly. Thanks


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 26 Oct 2012, 15:03 
GeekInTraining

Joined: 19 Oct 2012, 03:33
Posts: 15
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


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 26 Oct 2012, 15:09 
User avatar
Staff

Joined: 24 May 2011, 12:04
Posts: 1892
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 - ML 10.8.3/ Lion 10.7.5/SL 10.6.8/W 8 Pro x64/Ubuntu 12.04 - Quadriboot GUID - My OS X Files - join me at irc.freenode.net/#olarila


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 26 Oct 2012, 15:10 
User avatar
iGenius

Joined: 26 Aug 2011, 23:53
Posts: 3757
8 bits = 1 byte (CreateByteField)

_________________
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.3 • Linux Mint 14 • Windows 8


Top
 Profile  
 
 Post subject: Re: Compiler Warning
PostPosted: 28 Oct 2012, 19:14 
GeekInTraining

Joined: 19 Oct 2012, 03:33
Posts: 15
Thanks for the input!


namidar


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group