All of lore.kernel.org
 help / color / mirror / Atom feed
From: Troy Schultz <tschultz-zzOxFVvAfJPQT0dZR+AlfA@public.gmane.org>
To: John M Trostel <john.trostel-+vhbC7un7QRBDgjK7y7TUQ@public.gmane.org>
Cc: ACPI Development - Sourceforge
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: Using an external DSDT file with 2.4.19?
Date: 05 Sep 2002 14:02:54 -0400	[thread overview]
Message-ID: <1031248975.3371.3.camel@p2710> (raw)
In-Reply-To: <1031247708.3011.50.camel-gH4hS+xkl8U@public.gmane.org>

I just went through this on the weekend, here is what I did.

change the name of the newly compiled DSDT.hex file to acpi_dsdt.c and
place it in the kernel tree under ../drivers/acpi/tables.

Then apply the following patch:
***BEGIN***
--- /usr/src/linux-2.4.19-acpi-20020821/drivers/acpi/osl.c.orig	Sun Sep  1 11:16:04 2002
+++ /usr/src/linux-2.4.19-acpi-20020821/drivers/acpi/osl.c	Sun Sep  1 11:16:54 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;
 }
 
***END***

This worked very well for me with kernel 2.4.19.

Best Regards
- Troy





On Thu, 2002-09-05 at 13:41, John M Trostel wrote:
> I am now trying to use an external DSDT file (file.hex) to override what
> was written in the BIOS.  Unfortunately, I can't quite figure out how to
> get this file read rather than BIOS.  I see :
> 
>  http://www.cpqlinux.com/acpi-howto.html
> 
> but don't see how this will apply against the current 2.4.19 stuff.
> 
> -- 
> 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
> _______________________________________________
> Acpi-devel mailing list
> Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/acpi-devel
> 
> 




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

  parent reply	other threads:[~2002-09-05 18:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 17:41 Using an external DSDT file with 2.4.19? John M Trostel
     [not found] ` <1031247708.3011.50.camel-gH4hS+xkl8U@public.gmane.org>
2002-09-05 18:02   ` Troy Schultz [this message]
2002-09-05 18:06   ` KOCHI, Takayoshi
2002-09-05 18:07   ` Heiko Ettelbrück
  -- strict thread matches above, loose matches on Subject: below --
2002-09-05 19:04 Black, Richard (Hou)

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=1031248975.3371.3.camel@p2710 \
    --to=tschultz-zzoxfvvafjpqt0dzr+alfa@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=john.trostel-+vhbC7un7QRBDgjK7y7TUQ@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.