From: John M Trostel <john.trostel-+vhbC7un7QRBDgjK7y7TUQ@public.gmane.org>
To: ACPI-list <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Overriding DSDT Tables with external files - 2 Methods
Date: Thu, 05 Sep 2002 14:57:05 -0400 [thread overview]
Message-ID: <1031252226.3011.76.camel@jtsdell> (raw)
There seem to be 2 closely related methods of overriding the DSDT in a
BIOS with your own files.
My question is... Do they both work? If they do both work, is one
prefered over the other?
***********************************
Method 1 (from http://www.cpqlinux.com/acpi-howto.html and others)
1. get the dsdt.hex file
2. cp -a dsdt.hex to drivers/acpi/tables/acpi_dsdt.c
3. apply the following patch
--- linux/drivers/acpi/osl.c Sat Jul 13 16:16:25 2002
+++ linux-2.4.18-xfs-acpi/drivers/acpi/osl.c Sat Jul 13 14:33:09 2002
@@ -70,6 +70,7 @@
static OSD_HANDLER acpi_irq_handler = NULL;
static void *acpi_irq_context = NULL;
+extern unsigned char AmlCode[];
acpi_status
acpi_os_initialize(void)
@@ -221,7 +222,10 @@
if (!existing_table || !new_table)
return AE_BAD_PARAMETER;
- *new_table = NULL;
+ if (strncmp(existing_table->signature, "DSDT", 4) == 0)
+ *new_table = (acpi_table_header*)AmlCode;
+ else
+ *new_table = NULL;
return AE_OK;
}
***********************************
Method 2 (from Christophe Boyanique) :
1. get the dsdt.hex file
2. copy that file into drivers/acpi
3. patch drivers/acpi/osl.c as follows:
diff -urP drivers/acpi/osl.c /usr/src/linux/drivers/acpi/osl.c
--- drivers/acpi/osl.c Mon Jul 29 23:30:42 2002
+++ /usr/src/linux/drivers/acpi/osl.c Sat Jul 27 18:32:34 2002
@@ -71,6 +71,9 @@
static void *acpi_irq_context = NULL;
+#include "dsdt.hex"
+acpi_table_header *myDST = (acpi_table_header *) AmlCode;
+
acpi_status
acpi_os_initialize(void)
{
@@ -221,7 +224,10 @@
if (!existing_table || !new_table)
return AE_BAD_PARAMETER;
- *new_table = NULL;
+ if (!strncmp(existing_table->signature, DSDT_SIG, 4))
+ *new_table = myDST;
+ else
+ *new_table = NULL;
return AE_OK;
}
--
John M. Trostel
Senior Software Engineer
Quantum Corp.
john.trostel-+vhbC7un7QRBDgjK7y7TUQ@public.gmane.org
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
next reply other threads:[~2002-09-05 18:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 18:57 John M Trostel [this message]
[not found] ` <1031252226.3011.76.camel-gH4hS+xkl8U@public.gmane.org>
2002-09-06 5:46 ` Overriding DSDT Tables with external files - 2 Methods Sérgio Monteiro Basto
[not found] ` <1031291181.3918.12.camel-4/PLUo9XfK/yXfm4dIG/yWZHpeb/A1Y/@public.gmane.org>
2002-09-06 14:02 ` John M Trostel
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=1031252226.3011.76.camel@jtsdell \
--to=john.trostel-+vhbc7un7qrbdgjk7y7tuq@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