Home
last modified time | relevance | path

Searched hist:"8 d5bae1cb431426a8cd2754cc15e0c3dd7f2f0ef" (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/arch/riscv/include/kernel/
H A Dthread_private_arch.h8d5bae1cb431426a8cd2754cc15e0c3dd7f2f0ef Wed Jul 24 14:53:23 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Implement foreign interrupt handler

In SMP based OP-TEE system, the foreign interrupts, which are handled
outside OP-TEE, might be injected during the execution of OP-TEE. When
OP-TEE receives such foreign interrupts, it should suspend current
thread and yield the execution to the foreign domains to handle those
foreign interrupts.

This commit implements thread_foreign_interrupt_handler(), which is
expected to be called during trap handling. The job of this function are
suspending the current thread, and returning to the other domain to let
them handle the foreign interrupts.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
/optee_os/core/arch/riscv/kernel/
H A Dthread_rv.S8d5bae1cb431426a8cd2754cc15e0c3dd7f2f0ef Wed Jul 24 14:53:23 UTC 2024 Alvin Chang <alvinga@andestech.com> core: riscv: Implement foreign interrupt handler

In SMP based OP-TEE system, the foreign interrupts, which are handled
outside OP-TEE, might be injected during the execution of OP-TEE. When
OP-TEE receives such foreign interrupts, it should suspend current
thread and yield the execution to the foreign domains to handle those
foreign interrupts.

This commit implements thread_foreign_interrupt_handler(), which is
expected to be called during trap handling. The job of this function are
suspending the current thread, and returning to the other domain to let
them handle the foreign interrupts.

Signed-off-by: Alvin Chang <alvinga@andestech.com>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>