ArmPlatformPkg/Bds: Fixed initialization of default Boot Entry with an initrd

The Boot CmdLine was used instead of the initrd Device Path.

Issue found by Sivasakthivel N (AMI India)



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12404 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
oliviermartin 2011-09-22 22:50:13 +00:00
parent 9d4af8fce2
commit e8e1daee63

View File

@ -255,7 +255,7 @@ DefineDefaultBootEntries (
BootArguments->LinuxArguments.InitrdSize = InitrdSize;
CopyMem ((VOID*)(BootArguments + 1), (CHAR8*)PcdGetPtr(PcdDefaultBootArgument), CmdLineSize);
CopyMem ((VOID*)(BootArguments + 1) + CmdLineSize, (CHAR8*)PcdGetPtr(PcdDefaultBootArgument), InitrdSize);
CopyMem ((VOID*)((UINTN)(BootArguments + 1) + CmdLineSize), InitrdPath, InitrdSize);
} else {
BootArguments = NULL;
}