Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 09:44:56 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        castor@geocast.net
Cc:        stable@freebsd.org
Subject:   Re: bus_dmamap_load & compiler glitch
Message-ID:  <199902281744.JAA12017@vashon.polstra.com>
In-Reply-To: <Pine.GSO.4.03.9902272225240.14800-100000@geo.geocast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.GSO.4.03.9902272225240.14800-100000@geo.geocast.net>,
Castor Fu  <castor@geocast.net> wrote:
> 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.

What optimization level are you using?  Anything higher than "-O" is
not guaranteed to work.

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Nobody ever went broke underestimating the taste of the American public."
                                                            -- H. L. Mencken


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902281744.JAA12017>