Reviewed-by: Liming Gao <[email protected]>

> -----Original Message-----
> From: Laszlo Ersek [mailto:[email protected]]
> Sent: Friday, September 09, 2016 3:24 PM
> To: edk2-devel-01 <[email protected]>
> Cc: Ard Biesheuvel <[email protected]>; Gao, Liming
> <[email protected]>; Zhu, Yonghong <[email protected]>
> Subject: [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup
> strings
> 
> "EfiRom --dump" does not recognize the 0x8664 machine type:
> 
> >   EFI ROM header contents
> >     EFI Signature          0x0EF1
> >     Compression Type       0x0001 (compressed)
> >     Machine type           0x8664 (unknown)
> >     Subsystem              0x000B (EFI boot service driver)
> >     EFI image offset       0x0050 (@0xF650)
> 
> Add lookup strings for the remaining EFI_IMAGE_MACHINE_* numeric
> macros
> that can be found in
> "BaseTools/Source/C/Include/IndustryStandard/PeImage.h". The strings
> follow Table 12. "UEFI Image Types" from the UEFI v2.6 spec.
> 
> Cc: Ard Biesheuvel <[email protected]>
> Cc: Liming Gao <[email protected]>
> Cc: Yonghong Zhu <[email protected]>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Laszlo Ersek <[email protected]>
> ---
> 
> Notes:
>     v2:
>     - use ARM for ARM [Ard, Liming]
>     - use AA64 for AARCH64 [Liming]
>     - reference Table 12 in the commit message [Liming]
> 
>  BaseTools/Source/C/EfiRom/EfiRom.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/BaseTools/Source/C/EfiRom/EfiRom.h
> b/BaseTools/Source/C/EfiRom/EfiRom.h
> index 1214700826de..6763d6b1ec28 100644
> --- a/BaseTools/Source/C/EfiRom/EfiRom.h
> +++ b/BaseTools/Source/C/EfiRom/EfiRom.h
> @@ -117,6 +117,9 @@ static STRING_LOOKUP  mMachineTypes[] = {
>    { EFI_IMAGE_MACHINE_IA32, "IA32" },
>    { EFI_IMAGE_MACHINE_IA64, "IA64" },
>    { EFI_IMAGE_MACHINE_EBC, "EBC" },
> +  { EFI_IMAGE_MACHINE_X64, "X64" },
> +  { EFI_IMAGE_MACHINE_ARMT, "ARM" },
> +  { EFI_IMAGE_MACHINE_AARCH64, "AA64" },
>    { 0, NULL }
>  };
> 
> --
> 2.9.2

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to