Jump to content
Sign in to follow this  
Followers 0
bilbo

Help with patch code

4 posts in this topic

Recommended Posts

Hi.

I'm trying to fix an error relating to some Xeon cpus. It seems that in the original SSDT,  the order of C00X processor devices is weird for MacOsX. Comparing to the SSDT of other XEON without this problem, it seems that the only I have to do is:

into
 

Processor (C001, 0x81, 0x00000410, 0x06)
            {
                Name (_HID, "ACPI0007")  // _HID: Hardware ID
                Name (_UID, "PCI0-CP001")  // _UID: Unique ID
                Name (_PXM, Zero)  // _PXM: Device Proximity
                Method (_STA, 0, NotSerialized)  // _STA: Status
                {
                    If (LEqual (\_SB.CSTA (Zero, One), Zero))
                    {
                        Return (Zero)
                    }
                    Else
                    {
                        Return (0x0F)
                    }
                }
            }

change:
 

Processor (C001, 0x81, 0x00000410, 0x06)

to:

Processor (C001, 0x00, 0x00000410, 0x06)

0x81 to 0x00 (and so on)

 

I'm trying to write the apropiate code , to apply as many times as I need it, and apply to other ssdts (manually I have to fix almost 100 lines).  Copying the structure of other patches with similar syntax fixes, It seems easy, but anything works.

For instance:

into Processor label C001 code_regex 0x81 replace_matched begin 0x00, end;

... it doesn't work. But if I replace 0x81 by Name (for example) , yes, it matches it with all "names" founded under the Processor device..
 
It seems that all variables to the right of Processor are excluded, even if I use into_all all
 
 
thanks

Share this post


Link to post
Share on other sites
Advertisement

anybody? I'm still trying it...

Hi there, you should ask @MaLd0n or @artur_pt to help you solve the problem, They are the masters of all DSDT/SSDT related problems.

Share this post


Link to post
Share on other sites

download this tool, start it and then upload the generated files here.

 

Edited by spakk

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.

×