Re: Compaq 1720US, 2.4.18, acpi-7,24 - Help
From: Ducrot Bruno <hidden>
Date: 2002-08-13 09:55:53
On Tue, Aug 13, 2002 at 12:46:15AM -0400, Sourav K. Mandal wrote:
quoted hunk
On Mon, 2002-08-12 at 23:02, Prabhakar Reddy Gudla Venkata Siva wrote:quoted
Is there some step that I am missing ? Do I need to change something in the acpi code to override the new dsdt table ? Any help appreciated.This might already be done in the newest ACPI, but I had to change osl.c in the acpi directory, reflected in the patch below: ===============================================================@@ -71,6 +71,9 @@ static void *acpi_irq_context = NULL; +#include "dsdt.hex" +acpi_table_header *myDST = (acpi_table_header *) AmlCode; + acpi_status acpi_os_initialize(void) {@@ -221,7 +224,11 @@ if (!existing_table || !new_table) return AE_BAD_PARAMETER; - *new_table = NULL; + /* *new_table = NULL; */ + if (!strncmp(existing_table->signature, DSDT_SIG, 4)) + *new_table = myDST; + else + *new_table = NULL ; return AE_OK; }
Just a though: why not directly making something like *new_table = (acpi_table_header*) AmlCode; instead of declaring another variable ? -- Ducrot Bruno http://www.poupinou.org Page profaissionelle http://toto.tu-me-saoules.com Haume page ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31