public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Leif Lindholm <leif.lindholm@linaro.org>
To: Ming Huang <ming.huang@linaro.org>
Cc: linaro-uefi@lists.linaro.org, edk2-devel@lists.01.org,
	michael.d.kinney@intel.com, liming.gao@intel.com,
	ard.biesheuvel@linaro.org, guoheyi@huawei.com,
	wanghuiqiang@huawei.com, huangming23@huawei.com,
	zhangjinsong2@huawei.com, mengfanrong@huawei.com,
	huangdaode@hisilicon.com
Subject: Re: [PATCH edk2/MdePkg v1 1/1] MdePkg Cper.h: Add generic error macros for ARM platform
Date: Tue, 14 Aug 2018 17:42:29 +0100	[thread overview]
Message-ID: <20180814164229.obh5rx3ecbk6su6z@bivouac.eciton.net> (raw)
In-Reply-To: <20180812140148.31669-2-ming.huang@linaro.org>

On Sun, Aug 12, 2018 at 10:01:48PM +0800, Ming Huang wrote:
> Contributed-under: TianoCore Contribution Agreement 1.1
> Signed-off-by: Ming Huang <ming.huang@linaro.org>

Mike, Liming.
Could we merge this during the quiet period?
It's basically an omission - these are defined since (at least) UEFI 2.6.

> ---
>  MdePkg/Include/Guid/Cper.h | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/MdePkg/Include/Guid/Cper.h b/MdePkg/Include/Guid/Cper.h
> index 5ddd4c715ebc..525bfe57b21b 100644
> --- a/MdePkg/Include/Guid/Cper.h
> +++ b/MdePkg/Include/Guid/Cper.h
> @@ -256,6 +256,7 @@ typedef struct {
>  ///@{
>  #define EFI_GENERIC_ERROR_PROC_TYPE_IA32_X64         0x00
>  #define EFI_GENERIC_ERROR_PROC_TYPE_IA64             0x01
> +#define EFI_GENERIC_ERROR_PROC_TYPE_ARM              0x02
>  ///@}
>  
>  ///
> @@ -265,6 +266,8 @@ typedef struct {
>  #define EFI_GENERIC_ERROR_PROC_ISA_IA32              0x00
>  #define EFI_GENERIC_ERROR_PROC_ISA_IA64              0x01
>  #define EFI_GENERIC_ERROR_PROC_ISA_X64               0x02
> +#define EFI_GENERIC_ERROR_PROC_ISA_ARM32             0x03
> +#define EFI_GENERIC_ERROR_PROC_ISA_ARM64             0x04

Looking at the spec though, these are called:
ARM A32/T32 and
ARM A64

For architectural correctness, I think the names should be
EFI_GENERIC_ERROR_PROC_ISA_A32_T32
EFI_GENERIC_ERROR_PROC_ISA_A64
or 
EFI_GENERIC_ERROR_PROC_ISA_ARM_A32_T32
EFI_GENERIC_ERROR_PROC_ISA_ARM_A64
which gives some form of glorious symmetry against the
EFI_GENERIC_ERROR_PROC_TYPE_IA32_X64 above :)

With either change, as preferred by the package maintainers:
Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>

>  ///@}
>  
>  ///
> -- 
> 2.17.0
> 


  reply	other threads:[~2018-08-14 16:42 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-12 14:01 [PATCH edk2/MdePkg v1 0/1] Add generic error macros for ARM platform Ming Huang
2018-08-12 14:01 ` [PATCH edk2/MdePkg v1 1/1] MdePkg Cper.h: " Ming Huang
2018-08-14 16:42   ` Leif Lindholm [this message]
2018-08-14 18:37     ` Kinney, Michael D
2018-08-15 11:18       ` Laszlo Ersek

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=20180814164229.obh5rx3ecbk6su6z@bivouac.eciton.net \
    --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