Home
last modified time | relevance | path

Searched hist:a3097fa16826facc2b5a82d6231841f98a6133ac (Results 1 – 1 of 1) sorted by relevance

/optee_os/core/arch/riscv/kernel/
H A Dspinlock.Sa3097fa16826facc2b5a82d6231841f98a6133ac Fri Nov 14 05:38:55 UTC 2025 Randolph Lin <randolph@andestech.com> core: riscv: spinlock.S: use REGOFF for stack push and pop

In __cpu_spin_lock(), using STR/LDR and RISCV_XLEN_BYTES, it seems
that it wants to adopt the RV64 or RV32 environment, but missing the
shift byte for differ environmnt. therefore remove the const value and
using REGOFF() macro to fit the RV32/RV64 environment.

Signed-off-by: Randolph Lin <randolph@andestech.com>
Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com>