[M3commit] CVS Update: cm3

Jay K jay.krell at cornell.edu
Fri Feb 12 18:10:47 CET 2010


Value could change in the meantime.

I'll implement fetch_and_op with cmpxchg loops soon.

 

 - Jay

 
> From: hosking at cs.purdue.edu
> Date: Fri, 12 Feb 2010 10:26:04 -0500
> To: jkrell at elego.de
> CC: m3commit at elegosoft.com
> Subject: Re: [M3commit] CVS Update: cm3
> 
> It's fine if the result is stored in memory. We can pick it up from there, right? Rereading memory distinct from the atomic variable is fine.
> 
> On 12 Feb 2010, at 14:36, Jay Krell wrote:
> 
> > CVSROOT: /usr/cvs
> > Changes by: jkrell at birch. 10/02/12 14:36:19
> > 
> > Modified files:
> > cm3/m3-sys/m3back/src/: M3x86.m3 
> > 
> > Log message:
> > nevermind, this is all wrong except for store, load, fence, exchange,
> > and compare_exchange
> > The atomic interface really does *not* expose a bunch of
> > functionality on x86. x86 generally stores the result in memory.
> > We cannot then return the result because we'd have to reread memory.
> > Therefore all these functions will require cmpxchg loops.
> > Probably just write wrapper functions for the C compiler intrinsics..
> 
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3commit/attachments/20100212/567d31b3/attachment-0002.html>


More information about the M3commit mailing list