> > So what's up with these clobbers? If they aren't necessary, they
> > should be removed because they have a detrimental effect on code
> > generation. If they are necessary, how about a comment explaining
> > why?
>
> To force a cli/sti to act as a store/load barrier. That saves all the variables
> in the interrupt code being volatile and making gcc generate diabolically
> bad code.
>
> Alan
>
Rember Tom, as Linus has often said, the whole idea it to trick gcc into
producing better code (that's why there are goto's all over some source
files, where other clauses would read much better, a switch for instance).
>
Bryn
-- PGP key pass phrase forgotten, \ Overload -- core meltdown sequence again :( | initiated. / This space is intentionally left | blank, apart from this text ;-) \____________________________________