ucb-bar/riscv-linux — pull request #6 by darius-bluespec (2014-08-25 15:41:17+00:00)
Title: riscv: Improve atomic memory access and support -mno-atomic.

Use CONFIG_GENERIC_ATOMIC64 if 32-bit. Add system call to emulate
atomic compare exchange, primarily for targets lacking hardware
suport (i.e., lacking RV32A, RV64A). Support excluding use of
atomic memory instructions (-mno-atomic).

This change is mutually dependent on the corresponding change to
riscv-gcc.

This change is also dependent on three patches outside of
arch/riscv/ which have been submitted upstream.