diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-07 23:27:27 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-05-07 23:27:27 +0200 |
commit | 04066fe973c628476fbe9eb65bf62a67334987f7 (patch) | |
tree | c0a9371675c12af3581d60b0a615bc2d48686321 /sys/src/ape/lib/ap/stdio | |
parent | 7de7414e885c3fa3c52200c49528e1e8da5adcc9 (diff) |
bcm64: fix kernels cmpswap() function
spectacular bug. cmpswap() had a sign extension bug
using sign extending MOV to load the old compare
value and LDXRW using zero extension while the CMP
instruction compared 64 bit registers.
this caused cmpswap with negative old value always
to fail.
interestingly, libc's version of this function was
fine.
Diffstat (limited to 'sys/src/ape/lib/ap/stdio')
0 files changed, 0 insertions, 0 deletions