From owner-freebsd-stable Sat Feb 27 22:37:40 1999 Delivered-To: freebsd-stable@freebsd.org Received: from geo.geocast.net (geo.geocast.net [128.177.240.120]) by hub.freebsd.org (Postfix) with ESMTP id D8E461518B for ; Sat, 27 Feb 1999 22:37:29 -0800 (PST) (envelope-from castor@geocast.net) Received: from localhost (castor@localhost) by geo.geocast.net (8.8.8/8.8.8) with ESMTP id WAA14865 for ; Sat, 27 Feb 1999 22:37:36 -0800 (PST) Date: Sat, 27 Feb 1999 22:37:36 -0800 (PST) From: Castor Fu To: freebsd-stable@freebsd.org Subject: bus_dmamap_load & compiler glitch Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm trying to use the bus_dma interface with 3.1-RELEASE and the bus_dmamap_load routine appears to compile incorrectly with the default C compiler and default flags. It somehow fouls up in detecting the first segment and generates two segments, the first of which is garbage. Has anyone seen anything like this? I realize these routines are not used much yet in current drivers. Putting in a few printfs seems to get the compiler to do the right thing. -castor To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message