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



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