Adding membar_xxx defines to userland.
authoraoyama <aoyama@openbsd.org>
Wed, 22 Aug 2018 11:25:58 +0000 (11:25 +0000)
committeraoyama <aoyama@openbsd.org>
Wed, 22 Aug 2018 11:25:58 +0000 (11:25 +0000)
commitfc343cf934d04b41f9abaa99e672a3beee955880
treeda29d7f2fa9adf7de4d3947b8eed042dc649967e
parent4b9d2e573ad902e3784721e332682c640487bbfa
Adding membar_xxx defines to userland.

The src/lib/libc/thread/rthread.c 1.8 change adds #include
<sys/atomic.h> in userland code.

Current m88k atomic.h contents are inside of #if defined(_KERNEL)
guard, then, nothing is defined for userland program.
So we need adding some defines to compile it on m88k.

The original diff is suggested from Miod Vallat, modified by the
advice from mpi@ and kettenis@.

ok kettenis@
sys/arch/m88k/include/atomic.h