Subject: Re: USB stack needs early review (Re: Someone should fix our USB stack...)
To: Jachym Holecek <freza@dspfpga.com>
From: Michael van Elst <mlelstv@serpens.de>
List: tech-kern
Date: 03/22/2007 18:53:12
On Thu, Mar 22, 2007 at 05:27:03PM +0100, Jachym Holecek wrote:

> Nope, AFAIU "volatile" tells the compiler the value shouldn't get cached
> in a register (ie. should be refetched on each use) because it's expected
> to be updated asynchronously (by another bus-master or from interrupt/signal
> handler).

Right. 'volatile' must stay. We had several problems caused by missing
volatile declarations when we upgraded to gcc4 which cached values in
registers more aggressively.

Greetings,
-- 
                                Michael van Elst
Internet: mlelstv@serpens.de
                                "A potential Snark may lurk in every tree."