riscvarchive / riscv-edk2-platforms

Port of EDK2 implementation of UEFI to RISC-V. See documentation at:
https://github.com/riscv/riscv-uefi-edk2-docs
Other
18 stars 7 forks source link

Investigate if initial scratch space has to be in FD image #20

Open JohnAZoidberg opened 3 years ago

JohnAZoidberg commented 3 years ago

Currently the initial scratch space is in the UEFI FD image. I reduced the image size from 8MB to ~2.2MB and most of the second free area (green) is the scratch space.

We probably don't need to waste this space. I think this scratch space is only used in the very beginning and then we use physical RAM for the scratch space.

Since memory is trained when EDK2 starts (on all platforms so far), we probably don't to start off with scratch space in memory.

image

JohnAZoidberg commented 3 years ago

https://github.com/orangecms/utk-web/ is the tool I used to do that. The changes to reduce the size aren't committed yet.