[PATCH] fix acpica in i386 compiling with -O2
Jun Su
junsu at m-net.arbornet.org
Sun Jul 4 21:30:44 PDT 2004
this is a quick fix.
===
--- acpi_wakeup.c~ Sun Jul 4 12:42:07 2004
+++ acpi_wakeup.c Mon Jul 5 11:25:29 2004
@@ -295,6 +295,7 @@
static void
acpi_alloc_wakeup_handler(void)
{
+ void *addr = 0;
if (!cold)
return;
@@ -307,11 +308,12 @@
return;
}
- if (bus_dmamem_alloc(acpi_waketag, (void **)&acpi_wakeaddr,
+ if (bus_dmamem_alloc(acpi_waketag, (void **)&addr,
BUS_DMA_NOWAIT, &acpi_wakemap)) {
printf("acpi_alloc_wakeup_handler: can't alloc wake memory\n");
return;
}
+ acpi_wakeaddr = (vm_offset_t)addr;
}
SYSINIT(acpiwakeup, SI_SUB_KMEM, SI_ORDER_ANY, acpi_alloc_wakeup_handler, 0)
More information about the freebsd-current
mailing list