public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings
@ 2016-09-09  7:23 Laszlo Ersek
  2016-09-09  7:25 ` Gao, Liming
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2016-09-09  7:23 UTC (permalink / raw)
  To: edk2-devel-01; +Cc: Ard Biesheuvel, Liming Gao, Yonghong Zhu

"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 <ard.biesheuvel@linaro.org>
Cc: Liming Gao <liming.gao@intel.com>
Cc: Yonghong Zhu <yonghong.zhu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
---

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



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings
  2016-09-09  7:23 [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings Laszlo Ersek
@ 2016-09-09  7:25 ` Gao, Liming
  2016-09-09  8:26   ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: Gao, Liming @ 2016-09-09  7:25 UTC (permalink / raw)
  To: Laszlo Ersek, edk2-devel-01; +Cc: Ard Biesheuvel, Zhu, Yonghong

Reviewed-by: Liming Gao <liming.gao@intel.com>

> -----Original Message-----
> From: Laszlo Ersek [mailto:lersek@redhat.com]
> Sent: Friday, September 09, 2016 3:24 PM
> To: edk2-devel-01 <edk2-devel@ml01.01.org>
> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>; Gao, Liming
> <liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>
> 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 <ard.biesheuvel@linaro.org>
> Cc: Liming Gao <liming.gao@intel.com>
> Cc: Yonghong Zhu <yonghong.zhu@intel.com>
> Contributed-under: TianoCore Contribution Agreement 1.0
> Signed-off-by: Laszlo Ersek <lersek@redhat.com>
> ---
> 
> 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



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings
  2016-09-09  7:25 ` Gao, Liming
@ 2016-09-09  8:26   ` Laszlo Ersek
  2016-09-09  8:27     ` Ard Biesheuvel
  0 siblings, 1 reply; 5+ messages in thread
From: Laszlo Ersek @ 2016-09-09  8:26 UTC (permalink / raw)
  To: Gao, Liming, edk2-devel-01, Ard Biesheuvel

On 09/09/16 09:25, Gao, Liming wrote:
> Reviewed-by: Liming Gao <liming.gao@intel.com>

Thanks.

Ard, are you OK with this patch? (You were OK with "ARM" in advance, but
the AARCH64 string also changed in this version.)

Thanks
Laszlo

>> -----Original Message-----
>> From: Laszlo Ersek [mailto:lersek@redhat.com]
>> Sent: Friday, September 09, 2016 3:24 PM
>> To: edk2-devel-01 <edk2-devel@ml01.01.org>
>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>; Gao, Liming
>> <liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>
>> 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 <ard.biesheuvel@linaro.org>
>> Cc: Liming Gao <liming.gao@intel.com>
>> Cc: Yonghong Zhu <yonghong.zhu@intel.com>
>> Contributed-under: TianoCore Contribution Agreement 1.0
>> Signed-off-by: Laszlo Ersek <lersek@redhat.com>
>> ---
>>
>> 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
> 



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings
  2016-09-09  8:26   ` Laszlo Ersek
@ 2016-09-09  8:27     ` Ard Biesheuvel
  2016-09-09  8:38       ` Laszlo Ersek
  0 siblings, 1 reply; 5+ messages in thread
From: Ard Biesheuvel @ 2016-09-09  8:27 UTC (permalink / raw)
  To: Laszlo Ersek; +Cc: Gao, Liming, edk2-devel-01, Zhu, Yonghong

On 9 September 2016 at 09:26, Laszlo Ersek <lersek@redhat.com> wrote:
> On 09/09/16 09:25, Gao, Liming wrote:
>> Reviewed-by: Liming Gao <liming.gao@intel.com>
>
> Thanks.
>
> Ard, are you OK with this patch? (You were OK with "ARM" in advance, but
> the AARCH64 string also changed in this version.)
>

Yes, perfectly acceptable to me.

Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>


>>> -----Original Message-----
>>> From: Laszlo Ersek [mailto:lersek@redhat.com]
>>> Sent: Friday, September 09, 2016 3:24 PM
>>> To: edk2-devel-01 <edk2-devel@ml01.01.org>
>>> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org>; Gao, Liming
>>> <liming.gao@intel.com>; Zhu, Yonghong <yonghong.zhu@intel.com>
>>> 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 <ard.biesheuvel@linaro.org>
>>> Cc: Liming Gao <liming.gao@intel.com>
>>> Cc: Yonghong Zhu <yonghong.zhu@intel.com>
>>> Contributed-under: TianoCore Contribution Agreement 1.0
>>> Signed-off-by: Laszlo Ersek <lersek@redhat.com>
>>> ---
>>>
>>> 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
>>
>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings
  2016-09-09  8:27     ` Ard Biesheuvel
@ 2016-09-09  8:38       ` Laszlo Ersek
  0 siblings, 0 replies; 5+ messages in thread
From: Laszlo Ersek @ 2016-09-09  8:38 UTC (permalink / raw)
  To: Ard Biesheuvel; +Cc: Gao, Liming, edk2-devel-01, Zhu, Yonghong

On 09/09/16 10:27, Ard Biesheuvel wrote:
> On 9 September 2016 at 09:26, Laszlo Ersek <lersek@redhat.com> wrote:
>> On 09/09/16 09:25, Gao, Liming wrote:
>>> Reviewed-by: Liming Gao <liming.gao@intel.com>
>>
>> Thanks.
>>
>> Ard, are you OK with this patch? (You were OK with "ARM" in advance, but
>> the AARCH64 string also changed in this version.)
>>
> 
> Yes, perfectly acceptable to me.
> 
> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>

Thanks. Commit 2d41ea3aed4e.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-09-09  8:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-09  7:23 [PATCH v2] BaseTools/EfiRom: supply missing machine type lookup strings Laszlo Ersek
2016-09-09  7:25 ` Gao, Liming
2016-09-09  8:26   ` Laszlo Ersek
2016-09-09  8:27     ` Ard Biesheuvel
2016-09-09  8:38       ` Laszlo Ersek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox