Re: [FAQ?]How to add dsdt.hex to kernel ?
From: Sérgio Monteiro Basto <hidden>
Date: 2003-02-01 17:13:08
like i write before , you can read this two messages http://sourceforge.net/mailarchive/message.php?msg_id=2160477 or http://sourceforge.net/mailarchive/message.php?msg_id=2062932 On Sat, 2003-02-01 at 12:08, Stefan Behnel wrote:
quoted hunk
Hi! reeja.john-5C7GfCeVMHo@public.gmane.org wrote: > I created a custom dsdt.hex for my system for the kernel 2.5.55. How > am I able to add this new dsdt into the kernel? That one should really go into a FAQ somewhere (or rather replace the outdated description in the existing FAQ). This simple patch allows you to include your DSDT.hex file. I called it "my-dsdt.hex" here, has to be in the directory [linux]/drivers/acpi/, where osl.c is located. BTW: As this seems to be a common problem, would there be a way to add it as a standard kernel config option? Have fun, Stefan Behnel--- linux-2.4.21/drivers/acpi/osl.c 2003-01-24 09:59:27.000000000 +0100 +++ linux/drivers/acpi/osl.c 2003-01-24 13:36:45.000000000 +0100@@ -201,6 +201,9 @@ return AE_OK; } +/**/static const +#include "my-dsdt.hex" + acpi_status acpi_os_table_override (struct acpi_table_header *existing_table, struct acpi_table_header **new_table)@@ -208,7 +211,11 @@ if (!existing_table || !new_table) return AE_BAD_PARAMETER; - *new_table = NULL; + /**/if (strncmp(existing_table->signature,"DSDT",4)) + *new_table = NULL; + /**/else + *new_table = (struct acpi_table_header *)AmlCode; + return AE_OK; } -------------------------------------------------------This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com