sbi_mpxy_send_message_withresp()
- Disable preemption (
get_cpu()
). - Shared memory is per-core. We only need to disable the preemption to prevent the shared memory of current CPU from being corrupted by the other tasks.
- Issue SBI call:
SBI_EXT_MPXY_SEND_MSG_WITH_RESP
with message ID:OPTEED_MSG_COMMUNICATE
(0x1
) to send the message totdomain
and get the response. - This will switch to OpenSBI: If message ID is
OPTEED_MSG_COMMUNICATE
(0x1
) (Called fromudomain
):. OpenSBI will then switch to thetdomain
. - Enable preemption (
put_cpu()
).
sbi_mpxy_send_message_withresp()c
Loading...