commit | e783efa6eff5e0b8c91891f778598a95e1f7ad87 | [log] [tgz] |
---|---|---|
author | Rich Felker <dalias@aerifal.cx> | Wed Apr 30 15:32:11 2014 -0400 |
committer | Rich Felker <dalias@aerifal.cx> | Wed Apr 30 15:32:11 2014 -0400 |
tree | 99db96f8cf6477e943084a4fb606f667ee284797 | |
parent | 468bc11ed059c475f974920ac3d499e6071a6b2c [diff] |
fix arm thread-pointer/atomic asm when compiling to thumb code armv7/thumb2 provides a way to do atomics in thumb mode, but for armv6 we need a call to arm mode. this commit is based on a patch by Stephen Thomas which fixed the armv7 cases but not the armv6 ones. all of this should be revisited if/when runtime selection of thread pointer access and atomics are added.