From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39452) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uvr5j-0002iy-C8 for qemu-devel@nongnu.org; Sun, 07 Jul 2013 11:41:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uvr5g-0000FG-Mq for qemu-devel@nongnu.org; Sun, 07 Jul 2013 11:41:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uvr5g-0000FB-FA for qemu-devel@nongnu.org; Sun, 07 Jul 2013 11:41:32 -0400 Date: Sun, 7 Jul 2013 18:42:46 +0300 From: "Michael S. Tsirkin" Message-ID: <1373211589-8097-6-git-send-email-mst@redhat.com> References: <1373211589-8097-1-git-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1373211589-8097-1-git-send-email-mst@redhat.com> Subject: [Qemu-devel] [PATCH v2 5/5] acpi: add an option to disable builtin tables List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: seabios@seabios.org Cc: qemu-devel@nongnu.org Serves to save a bit of memory, and is helpful for debugging (making sure tables come from qemu). Memory stats: Enabled: Total size: 128776 Fixed: 59100 Free: 2296 (used 98.2% of 128KiB rom) Disabled: Total size: 119836 Fixed: 58996 Free: 11236 (used 91.4% of 128KiB rom) Signed-off-by: Michael S. Tsirkin --- src/Kconfig | 12 +++++++++++- src/acpi.c | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/Kconfig b/src/Kconfig index 5882d11..ff4c9d1 100644 --- a/src/Kconfig +++ b/src/Kconfig @@ -387,10 +387,20 @@ menu "BIOS Tables" default y help Support generation of ACPI tables. + config ACPI_BUILTIN + bool "Include built-in ACPI tables" + default y + depends on ACPI + help + Include built-in ACPI tables in BIOS. + Required for QEMU 1.5 and older. + This option can be disabled for QEMU 1.6 and newer + to save some space in the ROM file. + If unsure, say Y. config ACPI_DSDT bool "Include default ACPI DSDT" default y - depends on ACPI + depends on ACPI && ACPI_BUILTIN help Include default DSDT ACPI table in BIOS. Required for QEMU 1.3 and older. diff --git a/src/acpi.c b/src/acpi.c index 07d311a..2c51fd1 100644 --- a/src/acpi.c +++ b/src/acpi.c @@ -641,7 +641,7 @@ acpi_setup(void) RsdpAddr = acpi_find_rsdp_rom(); - if (RsdpAddr) { + if (!CONFIG_ACPI_BUILTIN || RsdpAddr) { return; } -- MST