Yeah, it is bit messy :-(
The challenge in edk2-platforms is because of its design of starting in
M-mode. It needs to adhere to both OpenSBI calling convention and EFI
To view this discussion on the web visit https://groups.google.com/a/riscv.org/d/msgid/fw-exchange/944f29f9-7f43-c2a0-ecc9-9ecd6ce94147%40ventanamicro.com.
On Fri, Jul 14, 2023 at 12:53 AM Sunil V L <sun...@ventanamicro.com> wrote:
Yeah, it is bit messy :-(
The challenge in edk2-platforms is because of its design of starting in
M-mode. It needs to adhere to both OpenSBI calling convention and EFI
It doesn't have to start in M-mode, correct? Are we just trying to formfit something that may not be the best approach/solution?
I can see either of these approaches being adopted, depending on the scenario:
H/M-Mode OpenSBI -> S-Mode PrePi -> DXE
M-Mode OpenSBI -> S-Mode SEC -> S-Mode PEI -> DXE
M-Mode SEC + OpenSBI -> M/S-Mode PEI -> DXE
It would be beneficial to have well-maintained examples of these. The issue with the U5 port is some bad choices made that are not in line with the Tiano design overall.
I just realized that Qemu can be used for the U5 cleanup work…
A
To view this discussion on the web visit https://groups.google.com/a/riscv.org/d/msgid/fw-exchange/9d32b9b1-aded-9bf1-8d0c-cc254cfb5adc%40ventanamicro.com.
I better hurry up with those patches for review (at least for RiscVVirt).
A
To view this discussion on the web visit https://groups.google.com/a/riscv.org/d/msgid/fw-exchange/22ab10e0-54e2-4a20-8f05-1ec5e9c3b273n%40riscv.org.