ArmPkg/BdsLib: Add support to pass argument to a loaded EFI application
OptionalData argument has to be set in the Loaded Image Protocol of the new EFI application. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12313 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -105,7 +105,9 @@ BdsLoadFileFromFirmwareVolume (
|
||||
EFI_STATUS
|
||||
BdsLoadApplication (
|
||||
IN EFI_HANDLE ParentImageHandle,
|
||||
IN CHAR16* EfiApp
|
||||
IN CHAR16* EfiApp,
|
||||
IN UINTN LoadOptionsSize,
|
||||
IN VOID* LoadOptions
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
@@ -133,7 +135,7 @@ BdsLoadApplication (
|
||||
Status = BdsLoadFileFromFirmwareVolume (Handles[HandleIndex], EfiApp, EFI_FV_FILETYPE_APPLICATION, &EfiAppDevicePath);
|
||||
if (!EFI_ERROR (Status)) {
|
||||
// Start the application
|
||||
Status = BdsStartEfiApplication (ParentImageHandle, EfiAppDevicePath);
|
||||
Status = BdsStartEfiApplication (ParentImageHandle, EfiAppDevicePath, LoadOptionsSize, LoadOptions);
|
||||
return Status;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user