ARM-software / ebbr

Embedded Base Boot Requirements Specification
Creative Commons Attribution Share Alike 4.0 International
113 stars 36 forks source link

RISC-V: privilege level when entering OS #56

Closed xypron closed 3 years ago

xypron commented 3 years ago

The UEFI spec has this sentence:

"When UEFI firmware handoff control to OS, the RISC-V is operated in machine-mode privilege." (M-mode is the equivalent to EL3 in ARM). This does not make any sense to me when using a secure execution environement (SEE) like OpenSBI.

The hand-off should occur in S-Mode if the CPU supports it and only in M-Mode when the CPU only supports M-mode.

We should prescribe this in the EBBR and somehow get the UEFI spec fixed afterwards.

glikely commented 3 years ago

Can this be raised at the UEFI spec now? I cannot see any barriers to getting this ECR raised and accepted. Then we can talk about wether or not to carry similar language in EBBR for the short term

xypron commented 3 years ago

Abner Chang wrote on the boot-architecture list that he raised an ECR requiring S-mode but that it is not yet approved. We could use the sentence from his mail.

glikely commented 3 years ago

Closing for lack of progress. Can be reopened if work is resumed