From: Nigel Cunningham <ncunningham-oKK1aGe2n869koe0gwxAeg@public.gmane.org>
To: ACPI List <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: DSDT Override: Is this correct?
Date: Tue, 14 Jan 2003 16:55:25 +1300 [thread overview]
Message-ID: <1042516523.2328.3.camel@laptop-linux.cunninghams> (raw)
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
next reply other threads:[~2003-01-14 3:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-14 3:55 Nigel Cunningham [this message]
[not found] ` <1042516523.2328.3.camel-udXHSmD1qAz9bBlWBkG5g4WQyAnV0byH@public.gmane.org>
2003-01-14 15:45 ` DSDT Override: Is this correct? Ducrot Bruno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1042516523.2328.3.camel@laptop-linux.cunninghams \
--to=ncunningham-okk1age2n869koe0gwxaeg@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox