From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6d59b47f6ba249f1 X-Google-Attributes: gidfee84,public From: ivie@cc.usu.edu (Roger Ivie) Subject: Re: Memory Barrier inst. Q? Date: 1996/02/20 Message-ID: <1996Feb20.164140.74615@cc.usu.edu>#1/1 X-Deja-AN: 140391989 references: <4gcgqg$457@nntp.atlanta.com> organization: Utah State University newsgroups: comp.unix.osf.osf1 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