* Memory Barrier inst. Q?
@ 1996-02-20 5:00 Curt Smith
1996-02-20 5:00 ` Roger Ivie
0 siblings, 1 reply; 2+ messages in thread
From: Curt Smith @ 1996-02-20 5:00 UTC (permalink / raw)
Hi,
I'm trying to learn all that can be known about the Alpha memory barrier
instruction and when it is useful and when it's necessary.
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] ??
Any info for either scenario?
Thanks.
--
Curt Smith
curts@compgen.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Memory Barrier inst. Q?
1996-02-20 5:00 Memory Barrier inst. Q? Curt Smith
@ 1996-02-20 5:00 ` Roger Ivie
0 siblings, 0 replies; 2+ messages in thread
From: Roger Ivie @ 1996-02-20 5:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-02-20 5:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-02-20 5:00 Memory Barrier inst. Q? Curt Smith
1996-02-20 5:00 ` Roger Ivie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox