Atomic operations?
Posted: Tue Nov 25, 2014 4:00 pm
Is there a proper way to make an atomic section to be 100% sure no interrupt kicks in during it?
is there something like
we had on avr or spin_lock_irqsave/spin_unlock_irqrestore calls in linux kernel?
is there something like
Code: Select all
ATOMIC_BLOCK(ATOMIC_RESTORESTATE)
{
...
}
we had on avr or spin_lock_irqsave/spin_unlock_irqrestore calls in linux kernel?