1
0
Fork 0
mirror of https://github.com/tylernguyen/x1c6-hackintosh.git synced 2025-02-05 09:33:13 -06:00
x1c6-hackintosh/patches/Debug Patches/SSDT-Debug.dsl
2020-11-03 11:58:35 -06:00

44 lines
No EOL
1.2 KiB
Text

/*
* Depends on /patches/Debug Patches/ Debug.plist
*/
DefinitionBlock ("", "SSDT", 0, "X1C6", "_Debug", 0x00001000)
{
//
// Many OEM ACPI implementations have a ADBG method which is used for debug
// logging. In almost all cases, this function calls MDBG, which is
// supposed to be defined in a ACPI debug SSDT (but is usually missing).
// This should make ADBG functional.
//
// To enable ACPI debug logging in AppleACPIPlatform:
// Add boot args: acpi_layer=0x8 acpi_level=0x2 debug=0x100
// (https://pikeralpha.wordpress.com/2013/12/23/enabling-acpi-debugging/)
//
// To retrieve the ACPI debug output in macOS:
// log show --last boot --predicate 'process == "kernel" AND senderImagePath CONTAINS "AppleACPIPlatform"' --style compact | awk '/ACPI Debug/{getline; getline; print}'
//
Method (XDBG, 1, NotSerialized)
{
Debug = Arg0
}
// to see debug messages
Method (DBG1, 1, NotSerialized)
{
Debug = Arg0
}
Method (DBG2, 2, NotSerialized)
{
Debug = Arg0
Debug = Arg1
}
Method (DBG3, 3, NotSerialized)
{
Debug = Arg0
Debug = Arg1
Debug = Arg2
}
}