Jump to content

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


  • Please log in to reply
12 replies to this topic

#1
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 790 posts
  • Gender:Not Telling
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 ?

#2
iFIRE

iFIRE

    InsanelyMacaholic

  • Moderators
  • 3,544 posts
  • Gender:Male
  • Location:Bcn-Spain
post this :

Method (_DSM, 4, Serialized)



#3
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 790 posts
  • Gender:Not Telling

		    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, 13 August 2012 - 08:16 PM.
Don't post code in quote boxes..fixed.


#4
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 5,857 posts
  • Gender:Male
  • Location:Brazil
Please zip and attach the DSDT.

#5
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 790 posts
  • Gender:Not Telling
:)


Here is my dsdt.dsl ; it's the only warning i can not fix and it seems to block any future device injections.

Attached Files

  • Attached File  dsdt.zip   35.73KB   20 downloads


#6
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 5,857 posts
  • Gender:Male
  • Location:Brazil
Added missing return statement.
Attached File  dsdt.zip   35.74KB   26 downloads

#7
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 790 posts
  • Gender:Not Telling
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..

#8
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 5,857 posts
  • Gender:Male
  • Location:Brazil
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.

#9
Rampage Dev

Rampage Dev

    InsanelyMac Deity

  • Local Moderators
  • 1,819 posts
  • Gender:Male
Add the information to the existing

_DSM



#10
pere

pere

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 718 posts
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.

Attached Files



#11
Gringo Vermelho

Gringo Vermelho

    The Jan Bird fix

  • Supervisors
  • 5,857 posts
  • Gender:Male
  • Location:Brazil
Nobody expects the Spanish Inquisition!!



#12
pere

pere

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 718 posts
:angel_not:

#13
The Real Deal

The Real Deal

    InsanelyMac Legend

  • Donators
  • 790 posts
  • Gender:Not Telling

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:





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   Web hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy