From owner-freebsd-current@FreeBSD.ORG Sun Jul 4 10:12:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A8A116A4CE for ; Sun, 4 Jul 2004 10:12:28 +0000 (GMT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D82143D45 for ; Sun, 4 Jul 2004 10:12:27 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (8.12.11/8.12.11) with ESMTP id i64ACNaj045534 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 4 Jul 2004 12:12:23 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.12.11/8.12.5/Submit) id i64ACNA4045533 for current@freebsd.org; Sun, 4 Jul 2004 12:12:23 +0200 (CEST) Date: Sun, 4 Jul 2004 12:12:23 +0200 From: Divacky Roman To: current@freebsd.org Message-ID: <20040704101223.GA45438@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: -Os acpi_wakeup.c compile repair X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 10:12:28 -0000 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)