From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nigel Cunningham Subject: DSDT Override: Is this correct? Date: Tue, 14 Jan 2003 16:55:25 +1300 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <1042516523.2328.3.camel@laptop-linux.cunninghams> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Return-path: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: ACPI List List-Id: linux-acpi@vger.kernel.org Hi. I'm just trying to override the DSDT using the 2.4.21-pre3 kernel, and had to stick a struct in front of the (acpi_table_header *) cast. Can I get confirmation that this the the right thing to do? Regards, Nigel --- linux-2.4.18/drivers/acpi/osl.c-dist Mon Aug 12 11:40:31 2002 +++ linux-2.4.18/drivers/acpi/osl.c Tue Aug 13 12:02:23 2002 @@ -25,6 +25,7 @@ * */ +#include "dsdt_table.h" #include #include #include @@ -221,7 +222,8 @@ if (!existing_table || !new_table) return AE_BAD_PARAMETER; - *new_table = NULL; + *new_table = (strncmp(existing_table->signature, DSDT_SIG, 4)) ? NULL \ + : (struct acpi_table_header *) AmlCode; return AE_OK; } ------------------------------------------------------- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en