From owner-acpi-jp@jp.freebsd.org  Wed Oct 17 22:48:09 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id WAA17106;
	Wed, 17 Oct 2001 22:48:09 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (shidahara1.planet.sci.kobe-u.ac.jp [133.30.68.253])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id WAA17101
	for <acpi-jp@jp.freebsd.org>; Wed, 17 Oct 2001 22:48:08 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Received: from shidahara1.planet.sci.kobe-u.ac.jp (localhost [127.0.0.1])
	by shidahara1.planet.sci.kobe-u.ac.jp (8.9.3/8.9.3) with ESMTP id WAA91918
	for <acpi-jp@jp.freebsd.org>; Wed, 17 Oct 2001 22:48:05 +0900 (JST)
	(envelope-from takawata@shidahara1.planet.sci.kobe-u.ac.jp)
Message-Id: <200110171348.WAA91918@shidahara1.planet.sci.kobe-u.ac.jp>
To: acpi-jp@jp.freebsd.org
In-reply-to: Your message of "Tue, 16 Oct 2001 22:32:07 JST."
             <20011016.223207.74756782.iwasaki@jp.FreeBSD.org>
Date: Wed, 17 Oct 2001 22:48:05 +0900
From: Takanori Watanabe <takawata@shidahara1.planet.sci.kobe-u.ac.jp>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1352
Subject: [acpi-jp 1352] Re: DSDT Override
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: takawata@shidahara1.planet.sci.kobe-u.ac.jp

In message <20011016.223207.74756782.iwasaki@jp.FreeBSD.org>, Mitsuru IWASAKI 
$B$5$s$$$o$/(B:
>Cool!  You really did :-)  Thanks watanabe-san.
># do you remember our discussion over a year ago at shimbashi-station?

I remembered. We may have to enhance our ACPI disassembler 
so that it can produce the output that can be used as ASL compiler output.

>> This patch is not clean enough to put. But works.
>
>OK, I modified this a bit and tested.  I think this is good enough to
>commit.
>
>We can stop having local workaround for some bogus ACPI BIOSes :-)
>
>Thanks
>
>+
>+    if ((acpi_dsdt = preload_search_by_type("acpi_dsdt")) != NULL) {
>+        if ((p = preload_search_info(acpi_dsdt, MODINFO_ADDR)) != NULL) {
>+            AcpiGbl_DSDT_TablePtr = *(void **)p;
>+	    printf("ACPI: DSDT was overridden.\n");
>+        }
>+    }
>+

Hmmm, touching ACPICA internal variable is not so clean way. 
I want Intel forks to add official interface for overriding DSDT.
I tried to load the DSDT with AcpiLoadTable() but rejected 
with AE_EXIST.

Takanori Watanabe
<a href="http://www.planet.sci.kobe-u.ac.jp/~takawata/key.html">
Public Key</a>
Key fingerprint =  2C 51 E2 78 2C E1 C5 2D  0F F1 20 A3 11 3A 62 2A 


