Subject: Re: USB stack needs early review (Re: Someone should fix our USB stack...)
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 04/26/2007 14:31:25
>> How could be spl() implemented to avoid the need for volatiles?
> It needs to have a memory clobber + __insn_barrier().

How would that avoid the ned for volatile marking on stuff shared
between driver top half and driver bottom half?  You still need
volatile to prevent the compiler from generating code assuming that,
for example, successive reads without stores in between will return the
same value, or that stores can be deferred without harm.

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B