Thread (1 message) 1 message, 1 author, 2003-01-21

Re: Problems installing ACPI

From: Heiko Ettelbrueck <hidden>
Date: 2003-01-21 12:03:59

Christian Brix Folsted Andersen wrote:
However i am having a bit of a problem applying your patch. The file
drivers/acpi/osl.c does not exist instead there is a file called os.c.
I looked at the file and tried to patch it manualy, but can not find the
position of the last part of the patch.

The first part was added at line 85 of os.c

static int acpi_irq_irq = 0;
static OSD_HANDLER acpi_irq_handler = NULL;
static void *acpi_irq_context = NULL;

extern unsigned char AmlCode[];

In which function is the last part supposed to go?
Which kernel did you use?
I use a vanilla kernel 2.4.20 with the ACPI patch 20021205. Did you use another ACPI patch? Perhaps this part has changed...

The last part of the patch is for the function acpi_os_table_override:

<<original>>

acpi_status
acpi_os_table_override (acpi_table_header *existing_table, acpi_table_header **new_table)
{
        if (!existing_table || !new_table)
                return AE_BAD_PARAMETER;

        *new_table = NULL;
        return AE_OK;
}

<<patched>>

acpi_status
acpi_os_table_override (acpi_table_header *existing_table, acpi_table_header **new_table)
{
        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;
}

I hope this will help. Please tell me whether you had success ;-)

Regards
Heiko



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.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