diff options
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | 2017-09-26 01:44:46 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2017-11-07 12:29:08 +0000 |
commit | 92f0513a0ca8a3d262f3e16f17366a2e517fec74 (patch) | |
tree | 45bdcd27e7362a5ac028fb7e8076f4420594c90b /src/lib/gnat/COPYING.RUNTIME | |
parent | 0c42cd324018fa921348acbc9f54ba0db764b201 (diff) |
arch/riscv: mprv_read_*: Mark result as earlyclobber
This fixes a case of mstatus corruption, where GCC generated code that
used the same register for the mprv bit and the result.
GCC inline assembly register modifiers are documented here:
https://gcc.gnu.org/onlinedocs/gcc/Modifiers.html
Change-Id: I2c563d171892c2e22ac96b34663aa3965553ceb3
Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net>
Reviewed-on: https://review.coreboot.org/21688
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/lib/gnat/COPYING.RUNTIME')
0 files changed, 0 insertions, 0 deletions