Mac OS X on x86 Hardware 2008–2024 Technical Archive
InfiniteMac OSx86 › OSx86 Core & 10.X › Got warning while compilling DSDT
6,827 reads · 2009-10-22 – 2010-01-29
Reference 10.X Core DSDT

Got warning while compilling DSDT

Maybe you could help me i get these warnings/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3107: Return (One) Warning 1099 - Statement is unreachable ^…

Primary Author
@danielniel Published 2009-10-22
Collection
OSx86 Core & 10.X
Archival Footprint
6,827 historical reads · 2 curated field notes (from 4 dispatches) · 2009-10-22 – 2010-01-29
Credited Voices (3)
@danielniel (2)@thorazine74@candykane

Maybe you could help me
i get these warnings/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3107: Return (One)
Warning 1099 - Statement is unreachable ^

/Users/daniordoyo/Documents/snowtr/Tools/DSDTPatcherGUI_1.0/Sessions/2009-10-21-222126/dsdt.dsl 3240: If (LEqual (Arg2, 0x03))
Warning 1099 - Statement is unreachable ^

Author Updates & Technical Revisions

Follow-up dispatches by @danielniel

Author Update #1 @danielniel 2009-10-22

Sorry, the hardware is
mobo Gigabyte EP45 Extreme
Proc intel QX9650 @ 3.0
mem 8gb GSKILL F2 8800 ddr2 1066
Ati sapphire 4870 512 mb

This is the dsdt
infinite mac.com/attachment.php?attachmentid=809&stc=1&d=1256240475

Synthesized Community Field Notes

2 technical responses curated from 4 original dispatches

Field Note #1 @thorazine74 2009-10-22

I doubt anyone will be able to help you if you dont post the dsdt code that triggers the warning and what hardware it comes from.

Field Note #2 @candykane 2010-01-29

Adding The below code will kill one of your warnings but
for the rest just let it go a warning is usaly not that important an error is!

On some machines, this hack enables sleep.
At the end of the _WAK method, this must be added:

Return (Package (0x02)
{
    Zero, 
    Zero
})


Example:


Method (_WAK, 1, NotSerialized)
    {
        P8XH (One, 0xAB)
        If (LOr (LEqual (Arg0, 0x03), LEqual (Arg0, 0x04)))
        {
            If (And (CFGD, 0x01000000))
            {
                If (LAnd (And (CFGD, 0xF0), LEqual (OSYS, 0x07D1)))
                {
                    TRAP (0x3D)
                }
            }
        }

        If (LEqual (RP2D, Zero))
        {
            Notify (\_SB.PCI0.RP02, Zero)
        }

        If (LEqual (Arg0, 0x03)) {}
        If (LEqual (Arg0, 0x04))
        {
            \_SB.PCI0.LPCB.EC.SELE ()
        }

        P8XH (Zero, 0xCD)

        Return (Package (0x02)
        {
            Zero, 
            Zero
        })
    }

You must use the search feature to locate the _WAK section and add the hack
Sources & Contributor Provenance (3 credited usernames · Thread #4482)
UsernameDossier ContributionDispatchesActive Window
@danielnielPrimary Author22009-10-22
@thorazine74Contributor12009-10-22
@candykaneContributor12010-01-29