1 /* This file is the basis for the ssdt table generated 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 * In addition to the aml code generated from this file, the
8 * src/acpi.c file creates a NTFY method with an entry for each cpu:
10 * If (LEqual(Arg0, 0x00)) { Notify(CP00, Arg1) }
11 * If (LEqual(Arg0, 0x01)) { Notify(CP01, Arg1) }
14 * and a CPON array with the list of active and inactive cpus:
15 * Name(CPON, Package() { One, One, ..., Zero, Zero, ... })
18 ACPI_EXTRACT_ALL_CODE ssdp_proc_aml
20 DefinitionBlock ("ssdt-proc.aml", "SSDT", 0x01, "BXPC", "BXSSDT", 0x1)
22 ACPI_EXTRACT_PROCESSOR_START ssdt_proc_start
23 ACPI_EXTRACT_PROCESSOR_END ssdt_proc_end
24 ACPI_EXTRACT_PROCESSOR_STRING ssdt_proc_name
25 Processor (CPAA, 0xAA, 0x0000b010, 0x06) {
26 ACPI_EXTRACT_NAME_BYTE_CONST ssdt_proc_id
29 * The src/acpi.c code requires the above ACP_EXTRACT tags so that it can update
30 * CPAA and 0xAA with the appropriate CPU id (see
31 * SD_OFFSET_CPUHEX/CPUID1/CPUID2). Don't change the above without
32 * also updating the C code.
34 Name (_HID, "ACPI0007")
35 External(CPMA, MethodObj)
36 External(CPST, MethodObj)
37 External(CPEJ, MethodObj)
44 Method (_EJ0, 1, NotSerialized) {