type
status
date
slug
summary
tags
category
icon
password
The code is based on: https://gitlab.com/riseproject/riscv-optee/opensbi/-/tree/dev-optee-mpxy
Commit ID: 
7d4c90953afe3bd86f9e2501bd4c2501e8db1898init_coldboot()
sbi_mpxy_init()- Allocate 
struct mpxy_statefor each domain. sbi_platform_mpxy_init()- Call platform-defined 
mpxy_init(). - e.g. For generic platform: 
fdt_mpxy_init(). 
fdt_mpxy_init()- Iterate MPXY drivers in 
fdt_mpxy_drivers[]. - MPXY drivers are generated at compile time:
 - Call 
drv->init(). - e.g. 
mpxy_opteed_init() 
sbi_ecall_mpxy_handler()sbi_ecall_mpxy_handler()is the handler for SBI MPXY ecalls, which will call the corresponding function based on SBI function ID, e.g.