]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make support for atomics on ARM complete.
authorEd Schouten <ed@FreeBSD.org>
Sat, 15 Jun 2013 08:15:22 +0000 (08:15 +0000)
committerEd Schouten <ed@FreeBSD.org>
Sat, 15 Jun 2013 08:15:22 +0000 (08:15 +0000)
commit72790363a33e79cd478320d2cd8b847215cc3181
tree40289196491db1fe44f6356631d04d2c4e48a5bf
parent933a8bff73410cd9ca49c51830893f5dbc21db11
Make support for atomics on ARM complete.

Provide both __sync_*-style and __atomic_*-style functions that perform
the atomic operations on ARMv5 by using Restartable Atomic Sequences.

While there, clean up some pieces of code where it's sufficient to use
regular uint32_t to store register contents and don't need full reg_t's.
Also sync this back to the MIPS code.
sys/arm/arm/stdatomic.c
sys/mips/mips/stdatomic.c