ucb-bar/riscv-linux — pull request #11 by aswaterman (2014-12-23 00:41:18+00:00)
Title: Simplify and improve atomic primitives

Use GCC's C11-style __atomic builtins where feasible, simplifying the code and removing memory clobbers. Tighten CAS sequence constraints to avoid memory clobbers.