diff options
author | Jamie Iles <jamie@jamieiles.com> | 2022-11-15 23:08:31 +0300 |
---|---|---|
committer | Palmer Dabbelt <palmer@rivosinc.com> | 2022-12-02 21:04:37 +0300 |
commit | dc58a24db8c12ea361e94eaf53adc5d471534694 (patch) | |
tree | 33800d8989bbdd0b2284a87b175eeed701e7ef21 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 3bd7743f8d6d7171db9897a746038eefd52a1fbd (diff) | |
download | linux-dc58a24db8c12ea361e94eaf53adc5d471534694.tar.xz |
RISC-V: preserve a1 in mcount
The RISC-V ELF psABI states that both a0 and a1 are used for return
values so we should preserve them both in return_to_handler. This is
especially important for RV32 for functions returning a 64-bit quantity
otherwise the return value can be corrupted and undefined behaviour
results.
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Link: https://lore.kernel.org/r/20221115200832.706370-4-jamie@jamieiles.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions