Fix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
authorkettenis <kettenis@openbsd.org>
Wed, 17 Aug 2016 11:56:42 +0000 (11:56 +0000)
committerkettenis <kettenis@openbsd.org>
Wed, 17 Aug 2016 11:56:42 +0000 (11:56 +0000)
commit7199ec15032b1c1b99be7f6c9e950a471bb147df
tree53d4bdeb6a5708055943daf2b2993c4087dc746a
parent2319c8ddb7d2cbd78990f5c68af6d87a627b370d
Fix x86_atomic_{set|clear}bits_u64() by using the "er" constraint instead
of "ir" as the orq and andq instructions take a 32-bit immedate argument that
gets sign-extended.

ok mikeb@
sys/arch/amd64/include/atomic.h