public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i386: CONFIG_ACPI_SRAT on non-acpi hw
@ 2005-09-16  6:50 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2005-09-16  6:50 UTC (permalink / raw)
  To: linux-kernel; +Cc: Magnus Damm

This patch for 2.6.14-rc1 adds code to check the return value of 
acpi_find_root_pointer(). Without this patch systems without ACPI support
such as QEMU crashes when booting a NUMA kernel with CONFIG_ACPI_SRAT=y.

Signed-off-by: Magnus Damm <magnus@valinux.co.jp>
----

--- from-0002/arch/i386/kernel/srat.c
+++ to-0003/arch/i386/kernel/srat.c	2005-09-16 15:22:48.000000000 +0900
@@ -327,7 +327,12 @@ int __init get_memcfg_from_srat(void)
 	int tables = 0;
 	int i = 0;
 
-	acpi_find_root_pointer(ACPI_PHYSICAL_ADDRESSING, rsdp_address);
+	if (ACPI_FAILURE(acpi_find_root_pointer(ACPI_PHYSICAL_ADDRESSING, 
+						rsdp_address))) {
+		printk("%s: System description tables not found\n",
+		       __FUNCTION__);
+		goto out_err;
+	}
 
 	if (rsdp_address->pointer_type == ACPI_PHYSICAL_POINTER) {
 		printk("%s: assigning address to rsdp\n", __FUNCTION__);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-16  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-16  6:50 [PATCH] i386: CONFIG_ACPI_SRAT on non-acpi hw Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox