mirror of https://github.com/acidanthera/audk.git
ArmPkg/BdsLib: InitrdImageSize was not initialized when no initrd was
passed The PrepareAtagList function is using this variable to determine if a initrd was passed to the kernel. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12181 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
50e610270c
commit
48be3ea2e0
|
@ -218,11 +218,14 @@ BdsBootLinux (
|
||||||
UINT32 KernelParamsSize;
|
UINT32 KernelParamsSize;
|
||||||
EFI_PHYSICAL_ADDRESS KernelParamsAddress;
|
EFI_PHYSICAL_ADDRESS KernelParamsAddress;
|
||||||
UINT32 MachineType;
|
UINT32 MachineType;
|
||||||
BOOLEAN FdtSupported = FALSE;
|
BOOLEAN FdtSupported;
|
||||||
LINUX_KERNEL LinuxKernel;
|
LINUX_KERNEL LinuxKernel;
|
||||||
EFI_PHYSICAL_ADDRESS LinuxImage;
|
EFI_PHYSICAL_ADDRESS LinuxImage;
|
||||||
EFI_PHYSICAL_ADDRESS InitrdImage;
|
EFI_PHYSICAL_ADDRESS InitrdImage;
|
||||||
|
|
||||||
|
InitrdImageSize = 0;
|
||||||
|
FdtSupported = FALSE;
|
||||||
|
|
||||||
// Ensure the System Memory PCDs have been initialized (PcdSystemMemoryBase and PcdSystemMemorySize)
|
// Ensure the System Memory PCDs have been initialized (PcdSystemMemoryBase and PcdSystemMemorySize)
|
||||||
ASSERT (PcdGet32(PcdSystemMemorySize) != 0);
|
ASSERT (PcdGet32(PcdSystemMemorySize) != 0);
|
||||||
|
|
||||||
|
@ -238,7 +241,6 @@ BdsBootLinux (
|
||||||
LinuxKernel = (LINUX_KERNEL)(UINTN)LinuxImage;
|
LinuxKernel = (LINUX_KERNEL)(UINTN)LinuxImage;
|
||||||
|
|
||||||
if (InitrdDevicePath) {
|
if (InitrdDevicePath) {
|
||||||
InitrdImageSize = 0;
|
|
||||||
Status = BdsLoadImage (InitrdDevicePath, AllocateAnyPages, &InitrdImage, &InitrdImageSize);
|
Status = BdsLoadImage (InitrdDevicePath, AllocateAnyPages, &InitrdImage, &InitrdImageSize);
|
||||||
if (EFI_ERROR(Status)) {
|
if (EFI_ERROR(Status)) {
|
||||||
Print (L"ERROR: Did not find initrd image.\n");
|
Print (L"ERROR: Did not find initrd image.\n");
|
||||||
|
|
Loading…
Reference in New Issue