Re: FYI: mb(9) API is finally going away
Taylor R Campbell <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.mips.devel,gmane.os.netbsd.devel.kernel |
|---|---|
| Message-ID | <[email protected]> |
The mb(9) API is now gone, except within sys/arch/mips where it is used inside __cpu_simple_lock -- there were too many ifdefs across components for me to disentangle, and the logic seems to be completely bonkers, e.g. on Octeon __cpu_simple_unlock issues a memory barrier _after_ the store to release the lock which makes no sense.