Jump to content
toleda

remove_entry not working

Recommended Posts

HD4000 framebuffer experiments. If Method (_DSM.... exist in GFX0 (parent_adr 0x00200000), DSDT Editor adds the new Method (_DSM.... after the existing entry resulting in a compile error: 8273 Error Name already exists in scope (_DSM)


Current patch

into method label _DSM parent_adr 0x00200000 remove_entry;
into device name_adr 0x00020000 insert
begin
   Method (_DSM, 4, NotSerialized)\n
   {\n
       Store (Package (0x02)\n
	     {\n
               "AAPL,ig-platform-id", \n
               Buffer (0x04) \n
               { \n
                  0x0A, 0x00, 0x66, 0x01 \n
               }, \n
           }, Local0)\n
       DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))\n
       Return (Local0)\n
   }\n
end

Attached is dsdt with the compile error; first patch 0A, second patch 0B.

test.dsl.zip

Link to comment
Share on other sites

into method label _DSM parent_adr 0x00200000 remove_entry;

into device name_adr 0x00020000 insert

It's not 0x00200000, but 0x00020000.

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.4 • Linux Mint 15 • Windows 8

Link to comment
Share on other sites

It's not 0x00200000, but 0x00020000.

Pilot error, thanks.

Another problem: No success with a patch for these warnings:

11048 Warning Not all control paths return a value (_HID)

11048 Warning Reserved method must return a value (Integer/String required for _HID)


original dsdt

Method (_HID, 0, NotSerialized)
       {
           If (TCMF) {}
           Else
           {
               Return (0x0201D824)
           }
       }

patch code

into_all all code_regex (If\s\(TCMF)\s*\)
replace_matched
begin
   If (TCMF) \n
   { \n
       Return (Zero) \n
   } \n
end

after

// into_all all code_regex (If\s\(TCMF)\s*\) replace_matched 

       Method (_HID, 0, NotSerialized)
       {
               If (TCMF) 
    { 
        Return (Zero) 
    } 
{}
           Else
           {
               Return (0x0201D824)
           }
       }

Unfortunately, the {} remains preventing a successful compile. Manually removing the {} fixes compile. dsdt with problem attached. Thanks again for the incredible support.

test1.zip

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...
The popup will be closed in 15 seconds...