public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* DSDT Override: Is this correct?
@ 2003-01-14  3:55 Nigel Cunningham
       [not found] ` <1042516523.2328.3.camel-udXHSmD1qAz9bBlWBkG5g4WQyAnV0byH@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Nigel Cunningham @ 2003-01-14  3:55 UTC (permalink / raw)
  To: ACPI List

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 <linux/config.h>
 #include <linux/kernel.h>
 #include <linux/slab.h>
@@ -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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DSDT Override: Is this correct?
       [not found] ` <1042516523.2328.3.camel-udXHSmD1qAz9bBlWBkG5g4WQyAnV0byH@public.gmane.org>
@ 2003-01-14 15:45   ` Ducrot Bruno
  0 siblings, 0 replies; 2+ messages in thread
From: Ducrot Bruno @ 2003-01-14 15:45 UTC (permalink / raw)
  To: Nigel Cunningham; +Cc: ACPI List

Hi,

On Tue, Jan 14, 2003 at 04:55:25PM +1300, Nigel Cunningham wrote:
> 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?

In the meantime, yes.

-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-14 15:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-14  3:55 DSDT Override: Is this correct? Nigel Cunningham
     [not found] ` <1042516523.2328.3.camel-udXHSmD1qAz9bBlWBkG5g4WQyAnV0byH@public.gmane.org>
2003-01-14 15:45   ` Ducrot Bruno

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