[lkml]   [1996]   [May]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Is clobber "memory" in include/asm-i386/system.h necessary?
> 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.


 \ /
  Last update: 2005-03-22 13:37    [W:0.051 / U:1.408 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site