FreeBSD/atomicについて、ここに記述してください。

https://github.com/freebsd/freebsd/blob/master/sys/riscv/include/atomic.h