QuarkPlatformPkg/PlatformInit: Fix recovery detection issues
https://bugzilla.tianocore.org/show_bug.cgi?id=137 https://bugzilla.tianocore.org/show_bug.cgi?id=139 There are four supported methods to generate a boot mode of BOOT_IN_RECOVERY_MODE on the Galileo platforms: * Detect a corrupt FV * Detect a forced recovery from the ForceRecovery UEFI application that sets a bit in a sticky R/W register * The RESET button for the Arduino shield is held while the system is powered up * The RESET button for the Arduino shield is held while the system is rebooted using the REBOOT button. The logic in the PlatformInit module is cleaned up and updated to support all three of the recovery detection methods. The clean ups include: * Remove extra debug messages * Remove user input from serial port In addition, once one of the recovery methods is detected and a boot mode of BOOT_IN_RECOVERY_MODE is set, the Galileo platforms would get an error attempting to use the USB host controller to detect and read a recovery image from a USB drive. The issue is the IMR protection registers are programmed to prevent DMA to memory owned by the PEI Core. The IMR register programming is updated to allow DMA to memory that is allocated by the recovery modules using the PEI AllocatePages() service. Cc: Kelly Steele <kelly.steele@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Kelly Steele <kelly.steele@intel.com>
This commit is contained in:
@@ -29,8 +29,6 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define ACPI_RECLAIM_SIZE_PAGES 0x20
|
||||
#define EDKII_DXE_MEM_SIZE_PAGES 0x20
|
||||
|
||||
#define AP_STARTUP_VECTOR 0x00097000
|
||||
|
||||
//
|
||||
// Maximum number of "Socket Sets", where a "Socket Set is a set of matching
|
||||
// DIMM's from the various channels
|
||||
@@ -185,12 +183,6 @@ SaveConfig (
|
||||
IN MRCParams_t *MrcData
|
||||
);
|
||||
|
||||
VOID
|
||||
RetriveRequiredMemorySize (
|
||||
IN EFI_PEI_SERVICES **PeiServices,
|
||||
OUT UINTN *Size
|
||||
);
|
||||
|
||||
EFI_STATUS
|
||||
GetMemoryMap (
|
||||
IN EFI_PEI_SERVICES **PeiServices,
|
||||
@@ -225,8 +217,7 @@ BaseMemoryTest (
|
||||
EFI_STATUS
|
||||
SetPlatformImrPolicy (
|
||||
IN EFI_PHYSICAL_ADDRESS PeiMemoryBaseAddress,
|
||||
IN UINT64 PeiMemoryLength,
|
||||
IN UINTN RequiredMemSize
|
||||
IN UINT64 PeiMemoryLength
|
||||
);
|
||||
|
||||
VOID
|
||||
|
Reference in New Issue
Block a user