public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Ard Biesheuvel <ard.biesheuvel@linaro.org>
To: Laszlo Ersek <lersek@redhat.com>
Cc: "edk2-devel@lists.01.org" <edk2-devel@ml01.01.org>,
	Liming Gao <liming.gao@intel.com>
Subject: Re: [PATCH] BaseTools/EfiRom: supply missing machine type lookup strings
Date: Thu, 8 Sep 2016 21:39:30 +0100	[thread overview]
Message-ID: <CAKv+Gu98YrqCHwpGEJyyR-mzOfw1SmbDDbJtL+trYQaG25HfSQ@mail.gmail.com> (raw)
In-Reply-To: <20160908195536.4452-1-lersek@redhat.com>

On 8 September 2016 at 20:55, Laszlo Ersek <lersek@redhat.com> wrote:
> "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".
>
> 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>
> ---
>  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..461963b4a701 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, "ARMT" },

Just 'ARM', please? PE/COFF has multiple machine types for ARM, but
EFI only uses this one for ARM (0x1c2)

With that change,

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

Thanks,
Ard.


  reply	other threads:[~2016-09-08 20:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 19:55 [PATCH] BaseTools/EfiRom: supply missing machine type lookup strings Laszlo Ersek
2016-09-08 20:39 ` Ard Biesheuvel [this message]
2016-09-08 21:30   ` Laszlo Ersek
2016-09-09  2:54     ` Gao, Liming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKv+Gu98YrqCHwpGEJyyR-mzOfw1SmbDDbJtL+trYQaG25HfSQ@mail.gmail.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox