Annotation of qemu/roms/seabios/src/ssdt-proc.dsl, revision 1.1.1.2

1.1.1.2 ! root        1: /* This file is the basis for the ssdt table generated in src/acpi.c.
1.1       root        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.
                      6:  *
                      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:
                      9:  *     Method(NTFY, 2) {
                     10:  *         If (LEqual(Arg0, 0x00)) { Notify(CP00, Arg1) }
                     11:  *         If (LEqual(Arg0, 0x01)) { Notify(CP01, Arg1) }
                     12:  *         ...
                     13:  *     }
                     14:  * and a CPON array with the list of active and inactive cpus:
                     15:  *     Name(CPON, Package() { One, One, ..., Zero, Zero, ... })
                     16:  */
1.1.1.2 ! root       17: 
        !            18: ACPI_EXTRACT_ALL_CODE ssdp_proc_aml
        !            19: 
1.1       root       20: DefinitionBlock ("ssdt-proc.aml", "SSDT", 0x01, "BXPC", "BXSSDT", 0x1)
                     21: {
1.1.1.2 ! root       22:     ACPI_EXTRACT_PROCESSOR_START ssdt_proc_start
        !            23:     ACPI_EXTRACT_PROCESSOR_END ssdt_proc_end
        !            24:     ACPI_EXTRACT_PROCESSOR_STRING ssdt_proc_name
1.1       root       25:     Processor (CPAA, 0xAA, 0x0000b010, 0x06) {
1.1.1.2 ! root       26:         ACPI_EXTRACT_NAME_BYTE_CONST ssdt_proc_id
1.1       root       27:         Name (ID, 0xAA)
1.1.1.2 ! root       28: /*
        !            29:  * The src/acpi.c code requires the above ACP_EXTRACT tags so that it can update
1.1       root       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.
                     33:  */
                     34:         Name (_HID, "ACPI0007")
                     35:         External(CPMA, MethodObj)
                     36:         External(CPST, MethodObj)
                     37:         External(CPEJ, MethodObj)
                     38:         Method(_MAT, 0) {
                     39:             Return(CPMA(ID))
                     40:         }
                     41:         Method (_STA, 0) {
                     42:             Return(CPST(ID))
                     43:         }
                     44:         Method (_EJ0, 1, NotSerialized) {
                     45:             CPEJ(ID, Arg0)
                     46:         }
                     47:     }
                     48: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.