mirror of https://github.com/acidanthera/audk.git
0b09397dfa
The IMD entry uses the 32bit start field as relative offset to root. On Ia32X64 this works fine as UINTN is also 32 bit and negative relative offsets are properly calculated due to an integer overflow. On X64 this doesn't work as UINTN is 64 bit and the offset is no longer subtracted, but it's added to the root. Fix that by sign extending the start field to 64 bit. Test: Booting UefiPayloadPkg still works on Ia32X64 and now also works on X64. Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-by: Gua Guo <gua.guo@intel.com> Reviewed-by: Sean Rhodes <sean@starlabs.systems> |
||
---|---|---|
.. | ||
AcpiTimerLib | ||
BaseSerialPortLibHob | ||
CbParseLib | ||
CbSerialPortLib | ||
DebugPrintErrorLevelLibHob | ||
DxeHobLib | ||
DxeHobListLib | ||
DxeHobListLibNull | ||
FlashDeviceLib | ||
PayloadEntryHobLib | ||
PciHostBridgeLib | ||
PciSegmentInfoLibAcpiBoardInfo | ||
PlatformBootManagerLib | ||
PlatformHookLib | ||
PlatformSupportLibNull | ||
ResetSystemLib | ||
SblParseLib | ||
SpiFlashLib |