1 /* This file is the basis for the ssdt_proc[] variable in src/acpi.c.
2 * It defines the contents of the per-cpu Processor() object. At
3 * runtime, a dynamically generated SSDT will contain one copy of this
4 * AML snippet for every possible cpu in the system. The objects will
5 * be placed in the \_SB_ namespace.
7 * To generate a new ssdt_proc[], run the commands:
8 * cpp -P src/ssdt-proc.dsl > out/ssdt-proc.dsl.i
9 * iasl -ta -p out/ssdt-proc out/ssdt-proc.dsl.i
10 * tail -c +37 < out/ssdt-proc.aml | hexdump -e '" " 8/1 "0x%02x," "\n"'
11 * and then cut-and-paste the output into the src/acpi.c ssdt_proc[]
14 * In addition to the aml code generated from this file, the
15 * src/acpi.c file creates a NTFY method with an entry for each cpu:
17 * If (LEqual(Arg0, 0x00)) { Notify(CP00, Arg1) }
18 * If (LEqual(Arg0, 0x01)) { Notify(CP01, Arg1) }
21 * and a CPON array with the list of active and inactive cpus:
22 * Name(CPON, Package() { One, One, ..., Zero, Zero, ... })
24 DefinitionBlock ("ssdt-proc.aml", "SSDT", 0x01, "BXPC", "BXSSDT", 0x1)
25 /* v------------------ DO NOT EDIT ------------------v */
27 Processor (CPAA, 0xAA, 0x0000b010, 0x06) {
29 /* ^------------------ DO NOT EDIT ------------------^
31 * The src/acpi.c code requires the above layout so that it can update
32 * CPAA and 0xAA with the appropriate CPU id (see
33 * SD_OFFSET_CPUHEX/CPUID1/CPUID2). Don't change the above without
34 * also updating the C code.
36 Name (_HID, "ACPI0007")
37 External(CPMA, MethodObj)
38 External(CPST, MethodObj)
39 External(CPEJ, MethodObj)
46 Method (_EJ0, 1, NotSerialized) {