]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't prefix zero with 0x in assym.s.
authorandrew <andrew@FreeBSD.org>
Thu, 13 Apr 2017 15:43:44 +0000 (15:43 +0000)
committerandrew <andrew@FreeBSD.org>
Thu, 13 Apr 2017 15:43:44 +0000 (15:43 +0000)
commit434a9744e1533859bf123acc09d498eecc39bb69
tree76c952df1e647ae9d2a8184bd72391a59a5662ad
parent5730f7ccdc34cf19749315e41d7240a77f5f723e
Don't prefix zero with 0x in assym.s.

The arm64 binutils only accepts 0 as an offset to the Load-Acquire Register
instructions where llvm will acceps both 0 and 0x0. The thread switching
code uses these with SCHED_ULE to block waiting for a lock to be released.
As the offset of the data to be loaded is zero this is safe, however it is
useful to keep the offset in the instruction to document what is being
loaded.

To work around this issue in binutils only generate the 0x prefix for
non-zero values.

Reported by: kan
Sponsored by: DARPA, AFRL
sys/kern/genassym.sh