[PATCH 0/2] Address vector misalgined load/store stack issues
Anup Patel
anup.patel at oss.qualcomm.com
Sat Jun 13 06:21:27 PDT 2026
The vector misaligned load/store emulation requires mask[] of 8192
bytes which cause stack corruptions since default stack size is also
8192 bytes. This series tries to address it.
These patches can also be found in misaligned_ldst_v_stack_imp_v1 branch
at: https://github.com/avpatel/opensbi.git
Anup Patel (2):
lib: sbi: Move trap delegation setup to sbi_trap.c
lib: sbi: Reduce stack usage of vector misaligned load/store emulation
include/sbi/sbi_trap.h | 2 ++
include/sbi/sbi_trap_ldst.h | 2 ++
lib/sbi/sbi_hart.c | 46 ----------------------------
lib/sbi/sbi_init.c | 8 +++++
lib/sbi/sbi_trap.c | 55 +++++++++++++++++++++++++++++++++
lib/sbi/sbi_trap_v_ldst.c | 61 +++++++++++++++++++++++++++++++++++--
6 files changed, 125 insertions(+), 49 deletions(-)
--
2.43.0
More information about the opensbi
mailing list