aboutsummaryrefslogtreecommitdiff
path: root/machine/atomic.h
diff options
context:
space:
mode:
authorSaleem Abdulrasool <abdulras@google.com>2021-05-07 16:11:18 -0700
committerGitHub <noreply@github.com>2021-05-07 16:11:18 -0700
commite8d15a489fa76612707ff9e99feb0fb36acc9f14 (patch)
treeb7dbe713c8a6595785a58c4102494a9abdee18a8 /machine/atomic.h
parent5450c2f731f16abe3a4f244c383c55f559c97359 (diff)
downloadriscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.zip
riscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.tar.gz
riscv-pk-e8d15a489fa76612707ff9e99feb0fb36acc9f14.tar.bz2
machine: correct some additional cases of UB (#246)
Use of asm aliased register variables in local scope can only be used for extended assembly parameters. This changes the few instances of this in the floating point emulation to use the GNU extended assembly syntax to access the `tp` register. This ensures that we do not rely on undefined behaviour. This was uncovered when building the Proxy kernel with clang and LLVM.
Diffstat (limited to 'machine/atomic.h')
0 files changed, 0 insertions, 0 deletions