linux-mips
[Top] [All Lists]

[PATCH] disable interrupt for non-LLSC atomic set

To: ralf@oss.sgi.com, linux-mips@oss.sgi.com
Subject: [PATCH] disable interrupt for non-LLSC atomic set
From: Jun Sun <jsun@mvista.com>
Date: Thu, 10 Jan 2002 17:53:14 -0800
Sender: owner-linux-mips@oss.sgi.com
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

<Prev in Thread] Current Thread [Next in Thread>