]> granicus.if.org Git - musl/commit
inline llsc atomics when building for sh4a
authorBobby Bingham <koorogi@koorogi.info>
Sun, 17 May 2015 18:46:38 +0000 (13:46 -0500)
committerRich Felker <dalias@aerifal.cx>
Tue, 19 May 2015 04:42:07 +0000 (00:42 -0400)
commit390f93ef69153bf2087fcf3baa1776ad9a6765ab
treecd81c3d920050f73f7ee0b28fbeb8b1e5e03dd2d
parentc093e2e8201524db0d638920e76bcb6b1d925f3a
inline llsc atomics when building for sh4a

If we're building for sh4a, the compiler is already free to use
instructions only available on sh4a, so we can do the same and inline the
llsc atomics. If we're building for an older processor, we still do the
same runtime atomics selection as before.
arch/sh/atomic.h
arch/sh/src/atomic.c