Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jeff Sturm <jeff.sturm@appnet.com>
To: axp-list@redhat.com
Subject: Re: [Fwd: Alpha SMP problem]
Date: Wed, 08 Nov 2000 18:53:43 -0500	[thread overview]
Message-ID: <3A09E787.838B6BC9@appnet.com> (raw)
In-Reply-To: 20001108141543.A27935@twiddle.net

Richard Henderson wrote:
> I did blame his code until I fixed it and it still failed.
> The following is actually the best fix; nothing needs to be
> made volatile, just add write-memory-barriers appropriately.

Richard is right, it works without volatile, because the compiler cannot
recognize that the call to Th_Delay() has no side effects.  Replace it with a
macro or asm and the load can get hoisted out of the loop (if the compiler is
smart enough... it turns out that gcc won't make this optimization if the
address of mem is taken at all).

What is the advtange of wmb vs. mb?

--
Jeff Sturm
jeff.sturm@commerceone.com




  parent reply	other threads:[~2000-11-08 23:43 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-08 13:51 [Fwd: Alpha SMP problem] Reto Baettig
2000-11-08 20:32 ` Jeff Sturm
2000-11-08 16:51   ` Reto Baettig
2000-11-08 22:44     ` Jeff Sturm
2000-11-09  6:11       ` should I use 8 DIMMs for UP2000 M/B when I put two 667Mhz processors? Jeong Hwan Park
2000-11-09  1:31         ` W Bauske
2000-11-09  6:31           ` Jeong Hwan Park
2000-11-09  2:09             ` W Bauske
2000-11-09  7:04               ` Greg Lindahl
2000-11-09  3:21                 ` W Bauske
2000-11-09 15:36                   ` Greg Lindahl
2000-11-09 20:49                     ` W Bauske
2000-11-10  3:10                       ` Greg Lindahl
2000-11-09 23:36                         ` W Bauske
2000-11-09 20:18         ` Tom Heibel
2000-11-09 20:25           ` Rich Payne
2000-11-09 20:24         ` Tom Heibel
2000-11-08 22:15   ` [Fwd: Alpha SMP problem] Richard Henderson
2000-11-08 17:39     ` Reto Baettig
2000-11-08 23:53     ` Jeff Sturm [this message]
2000-11-09  1:56       ` Richard Henderson
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