Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: ivie@cc.usu.edu (Roger Ivie)
Subject: Re: Memory Barrier inst. Q?
Date: 1996/02/20	[thread overview]
Message-ID: <1996Feb20.164140.74615@cc.usu.edu> (raw)
In-Reply-To: 4gcgqg$457@nntp.atlanta.com

In article <4gcgqg$457@nntp.atlanta.com>, curts@compgen.com (Curt Smith) writes:
> 
> The following is quoted from a reply to my similar net questions that 
> seems to address the Alpha SMP with multi-task on shared memory accesses:
> 
>         The memory barrier instruction guarantees that all subsequent
>         loads or stores will not access memory until after all previous
>         loads and stores have accessed memory, as observed by other
>         processors. 
> 
> It was infered that there were uni-processor scenarios where memory
> barrier inst would also be [useful, necessary] ??

Yeah, stuffing data into a CSR. The CPU will collect writes to the same
location (such as stuffing a string into the FIFO of a UART) and is
free to re-order writes. To make it even more fun, the MACRO32 compiler
can re-order reads.
-- 
-------------------------+---------------------------------------------
Roger Ivie               | "They say that heaven is like TV.
ivie@cc.usu.edu          |  A perfect little world that doesn't really
http://cc.usu.edu/~ivie/ |  need me." -- Laurie Anderson



      reply	other threads:[~1996-02-20  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-02-20  5:00 Memory Barrier inst. Q? Curt Smith
1996-02-20  5:00 ` Roger Ivie [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox