Port-mips archive

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

atomic_ops(3) and sync



hi,
I just noticed that our atomic_ops(3) don't include a sync instruction.
From what I've seen in the mips documents, neither ll nor sc is a memory
barrier, so our atomic_ops are no memory barrier either, and callers
have to add a sync instruction before atomic calls.
Is this the desired behavior, or should a sync be added in atomic_ops ?

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index