Thread (1 message) 1 message, 1 author, 2003-05-09

Re: custom dsdt with 2.5

From: Ducrot Bruno <hidden>
Date: 2003-05-09 15:16:57

On Fri, May 09, 2003 at 05:09:12PM +0200, roychris wrote:
I changed by hand the osl.c of the kernel 2.5. I can send you a diff if 
you want. This is the few lines I changed :

#include "/my/home/dsdt.hex"

and

*new_table = (struct acpi_table_header *) AmlCode;
*ALL* acpi tables will be passed to acpi_table_override().  Therefore,
the RSDT table have been replaced by the table that you have provided.
Since that is not what you want (RSDT is not DSDT), the ACPI subsystem
can not work properly.

Do something like this:

	*new_table = NULL;

	if (!strncmp((strncmp(existing_table->signature, DSDT_SIG, 4))))
		*new_table = (struct acpi_table_header *) AmlCode;


BTW, I don't see any reason why you have to patch by hand osl.c and you don't
use acpi-custom-DSDT.patch instead.
Really, it look good for me.  What say

$ patch -p1 -i /path/to/acpi-custom-DSDT.patch
in the linux-2.5.69 directory ?


Cheers,

-- 
Ducrot Bruno

--  Which is worse:  ignorance or apathy?
--  Don't know.  Don't care.


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help