Re: [PATCH] disable interrupt for non-LLSC atomic set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 10 Jan 2002, Jun Sun wrote:

> 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. 

 No need to -- no sane interrupt handler will ever access a user's atomic
variable. 

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux