From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JU64f-00085w-IT for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:06:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JU64f-000851-0I for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:06:49 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JU64e-00084p-UP for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:06:48 -0500 Received: from mx1.redhat.com ([66.187.233.31]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JU64e-0001UF-Iz for qemu-devel@nongnu.org; Tue, 26 Feb 2008 15:06:48 -0500 From: Glauber Costa Date: Tue, 26 Feb 2008 16:56:45 -0300 Message-Id: <1204055805-32349-16-git-send-email-gcosta@redhat.com> In-Reply-To: <1204055805-32349-15-git-send-email-gcosta@redhat.com> References: <1204055805-32349-1-git-send-email-gcosta@redhat.com> <1204055805-32349-2-git-send-email-gcosta@redhat.com> <1204055805-32349-3-git-send-email-gcosta@redhat.com> <1204055805-32349-4-git-send-email-gcosta@redhat.com> <1204055805-32349-5-git-send-email-gcosta@redhat.com> <1204055805-32349-6-git-send-email-gcosta@redhat.com> <1204055805-32349-7-git-send-email-gcosta@redhat.com> <1204055805-32349-8-git-send-email-gcosta@redhat.com> <1204055805-32349-9-git-send-email-gcosta@redhat.com> <1204055805-32349-10-git-send-email-gcosta@redhat.com> <1204055805-32349-11-git-send-email-gcosta@redhat.com> <1204055805-32349-12-git-send-email-gcosta@redhat.com> <1204055805-32349-13-git-send-email-gcosta@redhat.com> <1204055805-32349-14-git-send-email-gcosta@redhat.com> <1204055805-32349-15-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH 15/15] remove acpi_build_processor_ssdt Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: kvm-devel@lists.sourceforge.net Cc: marcelo@kvack.org, glommer@gmail.com, qemu-devel@nongnu.org, Glauber Costa , chrisw@sous-sol.org Signed-off-by: Glauber Costa --- 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> 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