Files
edk2-platforms/Platform/RaspberryPi/Library/ResetLib
Pete Batard ae6c236e76 Platform/RaspberryPi: Fix Linux kernel panic on reset/poweroff
Commit 94e9fba43d introduced an unconditional
call to PcdGet32 after we exit boot services, that produces a kernel panic
on Linux reset.

This addendum to the previous commit ensures that we only read the PCD and
apply the delay while we are still in UEFI, which is what we want anyway as
the goal was to fix the storage of NV variables set by the user from within
the UEFI firmware interface.

Signed-off-by: Pete Batard <pete@akeo.ie>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2021-01-05 15:18:12 +01:00
..