Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] disable interrupt for non-LLSC atomic set
@ 2002-01-11  1:53 Jun Sun
  2002-01-11 10:54 ` Maciej W. Rozycki
  0 siblings, 1 reply; 4+ messages in thread
From: Jun Sun @ 2002-01-11  1:53 UTC (permalink / raw)
  To: ralf, linux-mips


The current MIPS_ATOMIC set code for no-LLSC case does a load and store with
interrupt open.  This is potentially dangerous as an interrupt could happen
in-between and cause the value changed inside the interrupt handler. 
Therefore the load/store is not atomic anymore.

Does the following patch look good to fix that?

http://linux.junsun.net/patches/oss.sgi.com/submitted/020110.disable-intr-for-nollsc-atomic-set.patch

Jun

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-01-11 18:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-11  1:53 [PATCH] disable interrupt for non-LLSC atomic set Jun Sun
2002-01-11 10:54 ` Maciej W. Rozycki
2002-01-11 17:23   ` Jun Sun
2002-01-11 17:40     ` Maciej W. Rozycki

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