Home
last modified time | relevance | path

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

/optee_os/core/arch/riscv/kernel/
H A Dthread_arch.cdfa05b243a440d4b412cbd80678162621c576aed Mon Sep 09 05:42:25 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Set exception return PC into XEPC for entering user mode

Instead of setting exception return PC into "ra" register and assign it
to XEPC, we should directly set exception return PC into "XEPC" CSR to
improve code redability.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
H A Dthread_rv.Sdfa05b243a440d4b412cbd80678162621c576aed Mon Sep 09 05:42:25 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Set exception return PC into XEPC for entering user mode

Instead of setting exception return PC into "ra" register and assign it
to XEPC, we should directly set exception return PC into "XEPC" CSR to
improve code redability.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>