[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 15/15] remove acpi_build_processor_ssdt
From: |
Glauber Costa |
Subject: |
[Qemu-devel] [PATCH 15/15] remove acpi_build_processor_ssdt |
Date: |
Tue, 26 Feb 2008 16:56:45 -0300 |
Signed-off-by: Glauber Costa <address@hidden>
---
bios/rombios32.c | 55 ------------------------------------------------------
1 files changed, 0 insertions(+), 55 deletions(-)
diff --git a/bios/rombios32.c b/bios/rombios32.c
index f2db740..77e71ac 100755
--- a/bios/rombios32.c
+++ b/bios/rombios32.c
@@ -1294,57 +1294,6 @@ #endif
h->checksum = acpi_checksum((void *)h, len);
}
-int acpi_build_processor_ssdt(uint8_t *ssdt)
-{
- uint8_t *ssdt_ptr = ssdt;
- int i, length;
- int acpi_cpus = smp_cpus > 0xff ? 0xff : smp_cpus;
-
- ssdt_ptr[9] = 0; // checksum;
- ssdt_ptr += sizeof(struct acpi_table_header);
-
- // caluculate the length of processor block and scope block excluding
PkgLength
- length = 0x0d * acpi_cpus + 4;
-
- // build processor scope header
- *(ssdt_ptr++) = 0x10; // ScopeOp
- if (length <= 0x3e) {
- *(ssdt_ptr++) = length + 1;
- } else {
- *(ssdt_ptr++) = 0x7F;
- *(ssdt_ptr++) = (length + 2) >> 6;
- }
- *(ssdt_ptr++) = '_'; // Name
- *(ssdt_ptr++) = 'P';
- *(ssdt_ptr++) = 'R';
- *(ssdt_ptr++) = '_';
-
- // build object for each processor
- for(i=0;i<acpi_cpus;i++) {
- *(ssdt_ptr++) = 0x5B; // ProcessorOp
- *(ssdt_ptr++) = 0x83;
- *(ssdt_ptr++) = 0x0B; // Length
- *(ssdt_ptr++) = 'C'; // Name (CPUxx)
- *(ssdt_ptr++) = 'P';
- if ((i & 0xf0) != 0)
- *(ssdt_ptr++) = (i >> 4) < 0xa ? (i >> 4) + '0' : (i >> 4) + 'A' -
0xa;
- else
- *(ssdt_ptr++) = 'U';
- *(ssdt_ptr++) = (i & 0xf) < 0xa ? (i & 0xf) + '0' : (i & 0xf) + 'A' -
0xa;
- *(ssdt_ptr++) = i;
- *(ssdt_ptr++) = 0x10; // Processor block address
- *(ssdt_ptr++) = 0xb0;
- *(ssdt_ptr++) = 0;
- *(ssdt_ptr++) = 0;
- *(ssdt_ptr++) = 6; // Processor block length
- }
-
- acpi_build_table_header((struct acpi_table_header *)ssdt,
- "SSDT", ssdt_ptr - ssdt, 1);
-
- return ssdt_ptr - ssdt;
-}
-
/* base_addr must be a multiple of 4KB */
void acpi_bios_init(void)
{
@@ -1388,10 +1337,6 @@ #endif
dsdt = (void *)(addr);
addr += sizeof(AmlCode);
- ssdt_addr = addr;
- ssdt = (void *)(addr);
- addr += acpi_build_processor_ssdt(ssdt);
-
addr = (addr + 7) & ~7;
madt_addr = addr;
madt_size = sizeof(*madt) +
--
1.4.2
- [Qemu-devel] [PATCH 5/15] provide gpe _L0x methods, (continued)
- [Qemu-devel] [PATCH 5/15] provide gpe _L0x methods, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 6/15] provide operation region for pio to the gpes, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 7/15] implement method _L00 for GPE0, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 8/15] isolate cpu initialization function in hw/pc.c, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 9/15] initialize hot add system., Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 10/15] handle gpe data for pio, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 11/15] manipulate the gpe bits and send sci up the os., Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 12/15] isolate cpu thread creation in qemu-kvm.c, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 13/15] provide _MAT to acpi processor, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 14/15] start a new cpu thread, Glauber Costa, 2008/02/26
- [Qemu-devel] [PATCH 15/15] remove acpi_build_processor_ssdt,
Glauber Costa <=
- [Qemu-devel] Re: [kvm-devel] [PATCH 4/15] mark processors as presents, Alexander Graf, 2008/02/26
- [Qemu-devel] Re: [kvm-devel] [PATCH 4/15] mark processors as presents, Alexander Graf, 2008/02/26
[Qemu-devel] Re: [kvm-devel] [PATCH 0/15] acpi processor hotplug, Avi Kivity, 2008/02/27