28 UINT8 *BootImgBytePtr;
31 BootImgBytePtr = (UINT8 *)BootImg;
36 (
CONST CHAR8 *)Header->BootMagic,
38 ANDROID_BOOT_MAGIC_LENGTH
41 return EFI_INVALID_PARAMETER;
44 if (Header->KernelSize == 0) {
48 ASSERT (IS_VALID_ANDROID_PAGE_SIZE (Header->PageSize));
50 *KernelSize = Header->KernelSize;
51 *Kernel = BootImgBytePtr + Header->PageSize;
52 *RamdiskSize = Header->RamdiskSize;
54 if (Header->RamdiskSize != 0) {
55 *Ramdisk = (VOID *)(BootImgBytePtr
57 +
ALIGN_VALUE (Header->KernelSize, Header->PageSize));
62 ANDROID_BOOTIMG_KERNEL_ARGS_SIZE,
64 ANDROID_BOOTIMG_KERNEL_ARGS_SIZE
RETURN_STATUS EFIAPI AsciiStrnCpyS(OUT CHAR8 *Destination, IN UINTN DestMax, IN CONST CHAR8 *Source, IN UINTN Length)
INTN EFIAPI AsciiStrnCmp(IN CONST CHAR8 *FirstString, IN CONST CHAR8 *SecondString, IN UINTN Length)
#define ALIGN_VALUE(Value, Alignment)