From: John M Trostel <john.trostel-+vhbC7un7QRBDgjK7y7TUQ@public.gmane.org>
To: "Sérgio Monteiro Basto"
<sergiomb-5ng0By4jB+/QUPosyRRdSA@public.gmane.org>
Cc: ACPI-list <acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: Overriding DSDT Tables with external files - 2 Methods
Date: Fri, 06 Sep 2002 10:02:29 -0400 [thread overview]
Message-ID: <1031320950.1891.1.camel@jtsdell> (raw)
In-Reply-To: <1031291181.3918.12.camel-4/PLUo9XfK/yXfm4dIG/yWZHpeb/A1Y/@public.gmane.org>
And method #1 was the one I ended up using. And it works :-)
Thanks to all who made suggestions, I appreciate the help.
On Fri, 2002-09-06 at 01:46, Sérgio Monteiro Basto wrote:
> I prefer the method 1 because with gcc of RedHat doesn't include .hex
> files
>
> On Thu, 2002-09-05 at 14:57, John M Trostel wrote:
> > 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;
> > }
> >
> >
--
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
prev parent reply other threads:[~2002-09-06 14:02 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-05 18:57 Overriding DSDT Tables with external files - 2 Methods John M Trostel
[not found] ` <1031252226.3011.76.camel-gH4hS+xkl8U@public.gmane.org>
2002-09-06 5:46 ` 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 [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=1031320950.1891.1.camel@jtsdell \
--to=john.trostel-+vhbc7un7qrbdgjk7y7tuq@public.gmane.org \
--cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
--cc=sergiomb-5ng0By4jB+/QUPosyRRdSA@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