Skip to content

Commit

Permalink
add resources
Browse files Browse the repository at this point in the history
  • Loading branch information
naveenkrdy committed Aug 9, 2020
1 parent bd307c5 commit 1e20ac1
Show file tree
Hide file tree
Showing 4 changed files with 344 additions and 0 deletions.
66 changes: 66 additions & 0 deletions Kexts/AppleMCEReporterDisabler.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>AppleIntelMCEReporter Disabler 1.0, © 2019 by XLNC. All rights reserved.</string>
<key>CFBundleIdentifier</key>
<string>org.xlnc.disabler.MCEReporter</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>DisableAppleIntelMCEReporter</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleVersion</key>
<string>1.2</string>
<key>IOKitPersonalities</key>
<dict>
<key>DisableMCEInterruptController</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleIntelMCEReporter</string>
<key>IOClass</key>
<string>IOService</string>
<key>IOMatchCategory</key>
<string>AppleIntelMCEInterruptController</string>
<key>IOProbeScore</key>
<integer>5000</integer>
<key>IOPropertyMatch</key>
<array>
<dict>
<key>board-id</key>
<string>Mac-F60DEB81FF30ACF6</string>
</dict>
<dict>
<key>board-id</key>
<string>Mac-7BA5B2D9E42DDD94</string>
</dict>
<dict>
<key>board-id</key>
<string>Mac-27AD2F918AE68F61</string>
</dict>
</array>
<key>IOProviderClass</key>
<string>IOPlatformExpertDevice</string>
</dict>
<key>DisableMCEReporter</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.driver.AppleIntelMCEReporter</string>
<key>IOClass</key>
<string>IOService</string>
<key>IOMatchCategory</key>
<string>AppleIntelMCEReporter</string>
<key>IOProbeScore</key>
<integer>5000</integer>
<key>IOProviderClass</key>
<string>AppleIntelMCEInterruptNub</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
38 changes: 38 additions & 0 deletions Kexts/DisableEHCI.kext/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleGetInfoString</key>
<string>AppleUSBEHCI Disabler 1.0, © 2019 by XLNC. All rights reserved.</string>
<key>CFBundleIdentifier</key>
<string>com.xlnc.disabler.AppleUSBEHCIPCI</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>DisableAppleUSBEHCIPCI</string>
<key>CFBundlePackageType</key>
<string>KEXT</string>
<key>CFBundleVersion</key>
<string>1.2</string>
<key>IOKitPersonalities</key>
<dict>
<key>DisableAppleUSBEHCIPCI</key>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kpi.iokit</string>
<key>IOClass</key>
<string>IOService</string>
<key>IOProbeScore</key>
<integer>1000</integer>
<key>IOPCIClassMatch</key>
<string>0x0c032000</string>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
</dict>
<key>OSBundleRequired</key>
<string>Root</string>
</dict>
</plist>
191 changes: 191 additions & 0 deletions SSDTs/SSDT-CPUR.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
/*
* All AMD B550 chipset boards follow ACPI 5.0 or later specs which declares processor in ACPI as DeviceObj rather than ProcessorObj, resulting
* in boot failure on macOS. This SSDT fixes this issue by declaring our own processorObj and calling existing processor Devices within.
*/
DefinitionBlock ("", "SSDT", 2, "XLNC", "CPUR", 0x00003000)
{
External (_SB_.PLTF.C000, DeviceObj)
External (_SB_.PLTF.C001, DeviceObj)
External (_SB_.PLTF.C002, DeviceObj)
External (_SB_.PLTF.C003, DeviceObj)
External (_SB_.PLTF.C004, DeviceObj)
External (_SB_.PLTF.C005, DeviceObj)
External (_SB_.PLTF.C006, DeviceObj)
External (_SB_.PLTF.C007, DeviceObj)
External (_SB_.PLTF.C008, DeviceObj)
External (_SB_.PLTF.C009, DeviceObj)
External (_SB_.PLTF.C00A, DeviceObj)
External (_SB_.PLTF.C00B, DeviceObj)
External (_SB_.PLTF.C00C, DeviceObj)
External (_SB_.PLTF.C00D, DeviceObj)
External (_SB_.PLTF.C00E, DeviceObj)
External (_SB_.PLTF.C00F, DeviceObj)
External (_SB_.PLTF.C010, DeviceObj)
External (_SB_.PLTF.C011, DeviceObj)
External (_SB_.PLTF.C012, DeviceObj)
External (_SB_.PLTF.C013, DeviceObj)
External (_SB_.PLTF.C014, DeviceObj)
External (_SB_.PLTF.C015, DeviceObj)
External (_SB_.PLTF.C016, DeviceObj)
External (_SB_.PLTF.C017, DeviceObj)

Scope (\_SB)
{
Processor (PR00, 0x00, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C000) /* External reference */
}

Processor (PR01, 0x01, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C001) /* External reference */
}

Processor (PR02, 0x02, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C002) /* External reference */
}

Processor (PR03, 0x03, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C003) /* External reference */
}

Processor (PR04, 0x04, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C004) /* External reference */
}

Processor (PR05, 0x05, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C005) /* External reference */
}

Processor (PR06, 0x06, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C006) /* External reference */
}

Processor (PR07, 0x07, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C007) /* External reference */
}

Processor (PR08, 0x08, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C008) /* External reference */
}

Processor (PR09, 0x09, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C009) /* External reference */
}

Processor (PR10, 0x0A, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C00A) /* External reference */
}

Processor (PR11, 0x0B, 0x00000810, 0x06)
{
Return (\_SB.PLTF.C00B) /* External reference */
}

Processor (PR12, 0x0C, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C00C))
{
Return (\_SB.PLTF.C00C) /* External reference */
}
}

Processor (PR13, 0x0D, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C00D))
{
Return (\_SB.PLTF.C00D) /* External reference */
}
}

Processor (PR14, 0x0E, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C00E))
{
Return (\_SB.PLTF.C00E) /* External reference */
}
}

Processor (PR15, 0x0F, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C00F))
{
Return (\_SB.PLTF.C00F) /* External reference */
}
}

Processor (PR16, 0x10, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C010))
{
Return (\_SB.PLTF.C010) /* External reference */
}
}

Processor (PR17, 0x11, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C011))
{
Return (\_SB.PLTF.C011) /* External reference */
}
}

Processor (PR18, 0x12, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C012))
{
Return (\_SB.PLTF.C012) /* External reference */
}
}

Processor (PR19, 0x13, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C013))
{
Return (\_SB.PLTF.C013) /* External reference */
}
}

Processor (PR20, 0x14, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C014))
{
Return (\_SB.PLTF.C014) /* External reference */
}
}

Processor (PR21, 0x15, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C015))
{
Return (\_SB.PLTF.C015) /* External reference */
}
}

Processor (PR22, 0x16, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C016))
{
Return (\_SB.PLTF.C016) /* External reference */
}
}

Processor (PR23, 0x17, 0x00000810, 0x06)
{
If (CondRefOf (\_SB.PLTF.C017))
{
Return (\_SB.PLTF.C017) /* External reference */
}
}
}
}

49 changes: 49 additions & 0 deletions SSDTs/SSDT-EC.dsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Since macOS 10.15 AppleACPIEC driver expects an EC device "PNP0C09" at boot, without it will result in boot failure.
* While renaming EC0 to EC might potentially work initially, it connects an incompatible driver (AppleACPIEC) to your hardware.
* This can make your system unbootable at any time or hide bugs that could trigger randomly. As a alternative use this SSDT to disable
* the existing EC device and add a fake EC device in place.
*/

DefinitionBlock ("", "SSDT", 2, "ACDT", "EC__", 0x00005000)
{
External (_SB_.PCI0.SBRG, DeviceObj)
External (_SB_.PCI0.SBRG.EC0_, DeviceObj)

If (CondRefOf (\_SB.PCI0.SBRG.EC0))
{
Scope (\_SB.PCI0.SBRG.EC0)
{
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (Zero)
}
Else
{
Return (0x0F)
}
}
}
}

Scope (\_SB.PCI0.SBRG)
{
Device (EC)
{
Name (_HID, "ACID0001") // _HID: Hardware ID
Method (_STA, 0, NotSerialized) // _STA: Status
{
If (_OSI ("Darwin"))
{
Return (0x0F)
}
Else
{
Return (Zero)
}
}
}
}
}

0 comments on commit 1e20ac1

Please sign in to comment.