ArmPlatformPkg/Bds: Add a signature in front of the Boot Argument propoer to this Bds
Each application loader has its own OptionalData format. To avoid to start a Boot Entry that has not been created by ArmPlatform/Bds a signature has been added to the OptionalData. ArmPlatformPkg/Bds: Rename some internal structure from BDS_* to ARM_BDS_* git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12311 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -343,3 +343,34 @@ BdsStartBootOption (
|
||||
}
|
||||
return Status;
|
||||
}
|
||||
|
||||
UINTN
|
||||
GetUnalignedDevicePathSize (
|
||||
IN EFI_DEVICE_PATH* DevicePath
|
||||
)
|
||||
{
|
||||
UINTN Size;
|
||||
EFI_DEVICE_PATH* AlignedDevicePath;
|
||||
|
||||
if ((UINTN)DevicePath & 0x1) {
|
||||
AlignedDevicePath = DuplicateDevicePath (DevicePath);
|
||||
Size = GetDevicePathSize (AlignedDevicePath);
|
||||
FreePool (AlignedDevicePath);
|
||||
} else {
|
||||
Size = GetDevicePathSize (DevicePath);
|
||||
}
|
||||
return Size;
|
||||
}
|
||||
|
||||
EFI_DEVICE_PATH*
|
||||
GetAlignedDevicePath (
|
||||
IN EFI_DEVICE_PATH* DevicePath
|
||||
)
|
||||
{
|
||||
if ((UINTN)DevicePath & 0x1) {
|
||||
return DuplicateDevicePath (DevicePath);
|
||||
} else {
|
||||
return DevicePath;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user