summaryrefslogtreecommitdiff
path: root/ArmPlatformPkg
diff options
context:
space:
mode:
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 10:53:42 +0000
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>2011-09-09 10:53:42 +0000
commit2755d844f9ccc57108b49d5f91f38085de01760a (patch)
tree671d03d74292fa34ea65afd1edc323ae2d568c78 /ArmPlatformPkg
parenta6e97d28aa583e4b7959431cbf8bbd7269d5065d (diff)
downloadedk2-platforms-2755d844f9ccc57108b49d5f91f38085de01760a.tar.xz
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
Diffstat (limited to 'ArmPlatformPkg')
-rw-r--r--ArmPlatformPkg/Bds/BootMenu.c2
-rw-r--r--ArmPlatformPkg/Bds/BootOption.c2
2 files changed, 2 insertions, 2 deletions
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;