From 2755d844f9ccc57108b49d5f91f38085de01760a Mon Sep 17 00:00:00 2001 From: oliviermartin Date: Fri, 9 Sep 2011 10:53:42 +0000 Subject: 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 --- ArmPlatformPkg/Bds/BootMenu.c | 2 +- ArmPlatformPkg/Bds/BootOption.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ArmPlatformPkg') diff --git a/ArmPlatformPkg/Bds/BootMenu.c b/ArmPlatformPkg/Bds/BootMenu.c index d583c02256..ad2e914554 100644 --- a/ArmPlatformPkg/Bds/BootMenu.c +++ b/ArmPlatformPkg/Bds/BootMenu.c @@ -478,7 +478,7 @@ BootEBL ( EFI_STATUS Status; // Start EFI Shell - Status = BdsLoadApplication(mImageHandle, L"Ebl"); + Status = BdsLoadApplication (mImageHandle, L"Ebl", 0, NULL); if (Status == EFI_NOT_FOUND) { Print (L"Error: EFI Application not found.\n"); } else if (EFI_ERROR(Status)) { diff --git a/ArmPlatformPkg/Bds/BootOption.c b/ArmPlatformPkg/Bds/BootOption.c index 6a5f010abe..9354e01d26 100644 --- a/ArmPlatformPkg/Bds/BootOption.c +++ b/ArmPlatformPkg/Bds/BootOption.c @@ -85,7 +85,7 @@ BootOptionStart ( FdtDevicePath); } } else { - Status = BdsStartEfiApplication (mImageHandle, BootOption->FilePathList); + Status = BdsStartEfiApplication (mImageHandle, BootOption->FilePathList, BootOption->OptionalDataSize, BootOption->OptionalData); } return Status; -- cgit v1.2.3