From: Nigel Cunningham <ncunningham-oKK1aGe2n869koe0gwxAeg@public.gmane.org>
To: Greg Oliver <greg-OpKIWVIkplU@public.gmane.org>
Cc: ACPI List <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: ACPI-20030228 and custom dsdt
Date: Tue, 04 Mar 2003 16:37:31 +1300 [thread overview]
Message-ID: <1046749050.9966.3.camel@laptop-linux.cunninghams> (raw)
In-Reply-To: <20030303211020.7e008a42.greg-OpKIWVIkplU@public.gmane.org>
On Tue, 2003-03-04 at 16:10, Greg Oliver wrote:
> What is the secret for incorporating this into the 2.4.21-pre4 kernel
> sources? All patches apply cleanly, but all available methods to use my
> own DSDT fail compilation.
This still works for me.
Regards,
Nigel
diff -ruN linux-2.4.18/drivers/acpi/dsdt_table.h linux-2.4.18-use-my-dsdt/drivers/acpi/dsdt_table.h
--- linux-2.4.18/drivers/acpi/dsdt_table.h Thu Jan 1 12:00:00 1970
+++ linux-2.4.18-use-my-dsdt/drivers/acpi/dsdt_table.h Thu Aug 29 22:15:49 2002
@@ -0,0 +1,2526 @@
+/*
+ *
+ * Intel ACPI Component Architecture ASL Compiler X2046 [Jun 11 2002]
+ * Includes ACPI CA Subsystem version 20020611
+ * Copyright (C) 2000 - 2002 Intel Corporation
+ * Supports ACPI Specification Revision 2.0a
+ *
+ * Compilation of "nigel.v3.asl" - Thu Jun 27 07:37:12 2002
+ *
+ * C source code output
+ *
+ */
+unsigned char AmlCode[] =
+{
+ 0x44,0x53,0x44,0x54,0x73,0x4E,0x00,0x00, /* 00000000 "DSDTsN.." */
[deletia]
+ 0x53,0x08,0x5F,0x41,0x44,0x52,0x0C,0x03, /* 00004E68 "S._ADR.." */
+ 0x00,0x1F,0x00,
+};
diff -ruN linux-2.4.18/drivers/acpi/dsdt.h linux-2.4.18-use-my-dsdt/drivers/acpi/dsdt.h
--- 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>
@@ -208,7 +209,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: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
prev parent reply other threads:[~2003-03-04 3:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-04 3:10 ACPI-20030228 and custom dsdt Greg Oliver
[not found] ` <20030303211020.7e008a42.greg-OpKIWVIkplU@public.gmane.org>
2003-03-04 3:35 ` Darren Benham
[not found] ` <33027.192.168.10.204.1046748953.squirrel-FG1iuTdj8bisTnJN9+BGXg@public.gmane.org>
2003-03-04 12:07 ` Ducrot Bruno
2003-03-04 3:37 ` Nigel Cunningham [this message]
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=1046749050.9966.3.camel@laptop-linux.cunninghams \
--to=ncunningham-okk1age2n869koe0gwxaeg@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=greg-OpKIWVIkplU@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