Date: Mon, 5 Jul 2004 00:33:38 -0400 (EDT) From: Jun Su <junsu@m-net.arbornet.org> To: current@freebsd.org Subject: [PATCH] fix acpica in i386 compiling with -O2 Message-ID: <200407050433.i654Xc4D004572@m-net.arbornet.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407050433.i654Xc4D004572>