summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/booke
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-05-24 20:45:44 +0000
committermarcel <marcel@FreeBSD.org>2012-05-24 20:45:44 +0000
commitc933e51f6c2b709f1a98f25c0f49570cbad0f12f (patch)
tree2f32ea4188d977812092dc53aea48154792e91b5 /sys/powerpc/booke
parent01d5f155a139065732bdf67658a39743e192332b (diff)
downloadFreeBSD-src-c933e51f6c2b709f1a98f25c0f49570cbad0f12f.zip
FreeBSD-src-c933e51f6c2b709f1a98f25c0f49570cbad0f12f.tar.gz
Fix the memory barriers for CPUs that do not like lwsync and wedge or cause
exceptions early enough during boot that the kernel will do ithe same. Use lwsync only when compiling for LP64 and revert to the more proven isync when compiling for ILP32. Note that in the end (i.e. between revision 222198 and this change) ILP32 changed from using sync to using isync. As per Nathan the isync is needed to make sure I/O accesses are properly serialized with locks and isync tends to be more effecient than sync. While here, undefine __ATOMIC_ACQ and __ATOMIC_REL at the end of the file so as not to leak their definitions. Discussed with: nwhitehorn
Diffstat (limited to 'sys/powerpc/booke')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud