On 19 January 2015 at 17:57, Varad Gautam varadgautam@gmail.com wrote:
On 01/19/15 at 05:33 PM Ard Biesheuvel ard.biesheuvel@linaro.org wrote:
The current ARM port in Tianocore does not deal very well with a flash device in RAM. It assumes you are shadowing from flash if it detects that PrePi is running from RAM.
I hit something similar here https://git.linaro.org/people/ard.biesheuvel/uefi-next.git/commit/470ecd1480 880a80bbb29077a22a3e640d9633f7
So how do you load the UEFI image?
I'm using U-Boot's SPL as the primary loader which places UEFI image at 0x80800000, making this set of addresses unavailable to the OS loader.
Well, the point is that once the DXE phase executes, the original FD is not used anymore, so it should be safe to release that memory.
Would exempting this shadowed memory from initial allocation to let the kernel decompress someplace else and takeover the entire RAM work?
No, because it will still be missing from the memory map, so the kernel would not be able to use it.