Jump to content
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

Link to comment
https://www.insanelymac.com/forum/topic/332801-help-with-patch-code/
Share on other sites

×
×
  • Create New...