diff options
| author | Troy Mitchell <troy.mitchell@linux.dev> | 2026-10-05 19:02:37 -0600 |
|---|---|---|
| committer | Paul Walmsley <pjw@kernel.org> | 2026-10-05 19:02:37 -0600 |
| commit | 572b25f3a6453d8e7fc28cc0cefe41ed15be166c (patch) | |
| tree | de0a45c2af2695a3109aeb4629b6355fe9fecce3 /scripts/Makefile.thinlto | |
| parent | 756724133bd3b89e097c92110221b44cafe0d06a (diff) | |
| download | linux-next-572b25f3a6453d8e7fc28cc0cefe41ed15be166c.tar.gz linux-next-572b25f3a6453d8e7fc28cc0cefe41ed15be166c.zip | |
riscv: vector: Fix data pointer constraints in context save/restore
The standard vector save/restore asm advances datap but declares it as
input-only. An inlined caller reusing the original pointer may therefore
use the advanced address instead.
Declare datap as read-write so the compiler can preserve the original
pointer when needed.
Fixes: 03c3fcd9941a ("riscv: Introduce struct/helpers to save/restore per-task Vector state")
Signed-off-by: Troy Mitchell <troy.mitchell@linux.dev>
Reviewed-by: GUO Ren (XuanTie) <guoren@kernel.org>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Andy Chiu <tchiu@tenstorrent.com>
Link: https://patch.msgid.link/20260908-riscv-vector-asm-fix-v1-1-147f314efb2b@linux.dev
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
