Jump to content

(SOLVED) Compil error 1088/1081 : Method (_DSM, 4, Serialized)


The Real Deal
 Share

13 posts in this topic

Recommended Posts

Hey,

 

Every time i try to compil my dsdt.dsl with a device injection, it returns this same error :

 

 

 

/Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9384: Method (_DSM, 4, Serialized)

Error 4057 - Name already exists in scope ^ (_DSM)

 

 

 

 

 

If anyone have a clue or lead.

 

 

Thank you.

 

 

 

 

Original errors when .dsl is compiled and untouched :

 

 

/Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9372: Method (_DSM, 4, Serialized)

Warning 1088 - Not all control paths return a value ^ (_DSM)

 

/Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9372: Method (_DSM, 4, Serialized)

Warning 1081 - Reserved method must return a value ^ (_DSM)

 

 

How to fix this please ?

Link to comment
Share on other sites

	    Method (_DSM, 4, Serialized)
	    {
		    Name (DRET, Buffer (0x04)
		    {
			    0x00
		    })
		    If (LEqual (Arg0, Buffer (0x10)
				    {
					    /* 0000 */    0xE1, 0x75, 0x39, 0x6F, 0x82, 0x7A, 0x67, 0x4F,
					    /* 0008 */    0x8B, 0x97, 0x15, 0xBE, 0xE0, 0x60, 0xBE, 0xDF
				    }))
		    {
			    If (LEqual (Arg2, Zero))
			    {
				    CreateWordField (DRET, Zero, F0SS)
				    Store (0x02, F0SS)
				    Return (DRET)
			    }
			    If (LEqual (Arg2, One))
			    {
				    If (LEqual (^^PEG0.PEGP.LNKV, 0x03))
				    {
					    Return (Zero)
				    }
				    Return (One)
			    }
		    }
	    }
    }
   }
   Scope (_PR)

Edited by The Real Deal
Don't post code in quote boxes..fixed.
Link to comment
Share on other sites

Thank you gringo ;

 

Are the spaces before and after the return zero are necessary ?

 

 

 

EDIT :

 

 

I still can't compil my dsdt when i try to inject a device :

 

/Users/Nicolas/Library/Application Support/EvOSoftware/DSDT/DSDTFiles/dsdt.dsl 9384: Method (_DSM, 4, Serialized)
Error 4057 - Name already exists in scope ^ (_DSM)

 

 

I am swimming..

Link to comment
Share on other sites

I didn't see that particular error, but I'm using IASL from 2011. I did see a whole bunch of other errors and warnings that you're probably not seeing.

 

If you try to compile your DSDT as it is, without touching it, does the same error appear?

 

Spaces between lines are not necessary, feel free to remove them all if they are bothering you.

Link to comment
Share on other sites

I didn't see that particular error, but I'm using IASL from 2011. I did see a whole bunch of other errors and warnings that you're probably not seeing.

 

If you try to compile your DSDT as it is, without touching it, does the same error appear?

 

Spaces between lines are not necessary, feel free to remove them all if they are bothering you.

 

:)

 

I tried iasl and indeed it returns a lot of errors :ihw_wow: ; with DSDTSE :

 

 

Compilation complete. 0 Errors, 0 Warnings, 0 Remarks, 39 Optimizations

 

 

minihack and cassio helped me to understand the 4057 error ; there was already a vanilla Method (_DSM, 4, Serialized) in the scope when i tried to inject my HD 3000. Even after, with a return zero added to the _DSM, problems occured to compil the dsdt. So it is removed and some syntaxes fixed now. Basically, there just can't be doubloon in a same scope.

Now my ALC898 and HD 3000 audio + video are injected as it should be.

 

 

 

 

Add the information to the existing

_DSM

 

 

It is an idea but i'm not sure it is my best option :)

 

 

 

 

Hello Gringo!. :)

 

The Real Deal, wich device are you trying to inject, where are you trying to insert it and wich code are you using?

 

I have attached your DSDT:

Cleaned a bit

IRQ fixes

SBRG and SBUS hacks.

 

pere,

HD 3000 audio and video (Device GFX0 IGPU) + ALC898 (Device HDEF), but it is good now :)

IRQ, SBRG and SBUS ? I'm going to check the purpose ;)

 

:thanks_speechbubble:

Link to comment
Share on other sites

 Share

×
×
  • Create New...