Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 12:12:23 +0200
From:      Divacky Roman <xdivac02@stud.fit.vutbr.cz>
To:        current@freebsd.org
Subject:   -Os acpi_wakeup.c compile repair
Message-ID:  <20040704101223.GA45438@stud.fit.vutbr.cz>

next in thread | raw e-mail | index | archive | help
I am not able to compile kernel with -Os due some aliasing issue in acpi
this seems to correct it

--- acpi_wakeup.c	Sun Jul  4 11:58:51 2004
+++ /sys/i386/acpica/acpi_wakeup.c	Sun Jul  4 11:56:46 2004
@@ -295,6 +295,7 @@
 static void
 acpi_alloc_wakeup_handler(void)
 {
+   vm_offset_t *wakeaddr;
 	if (!cold)
 		return;
 
@@ -307,11 +308,13 @@
 		return;
 	}
 
-	if (bus_dmamem_alloc(acpi_waketag, (void **)&acpi_wakeaddr,
+	if (bus_dmamem_alloc(acpi_waketag, (void **)wakeaddr,
 			     BUS_DMA_NOWAIT, &acpi_wakemap)) {
+	        acpi_wakeaddr=*wakeaddr;
 		printf("acpi_alloc_wakeup_handler: can't alloc wake memory\n");
 		return;
 	}
+	acpi_wakeaddr=*wakeaddr;
 }
 
 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?20040704101223.GA45438>