This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC: [PATCH] MIPS: Implement built-in atomic memory operations.


On Mon, 13 Aug 2007, David Daney wrote:

> > and what's to stop the compiler from inserting a
> > load from read-only memory?
> >   
> That is not a problem unique to ll/sc is it?  Presumable there would be some
> sort of fault and something like SIGSEGV or SIGBUS would be generated.

 It is implementation-specific how much address space is checked by the 
LL/SC logic for bus activity, so if you have another load (or store) 
between an LL and an SC chances are the SC will never succeed.

  Maciej


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]