public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Andrew Fish <afish@apple.com>
To: edk2-devel <edk2-devel@lists.01.org>
Subject: OEM EFI_STATUS Code Ranges?
Date: Mon, 19 Feb 2018 16:19:36 -0800	[thread overview]
Message-ID: <827D6636-D89F-442B-B9FA-5542007C4B8A@apple.com> (raw)

I noticed the edk2 is missing UEFI defined ranges for OEM EFI_STATUS Code Ranges. 

~/work/src/edk2/MdePkg(master)>git grep MAX_BIT -- *.h
Include/AArch64/ProcessorBind.h:84:#define MAX_BIT     0x8000000000000000ULL
Include/Arm/ProcessorBind.h:139:#define MAX_BIT      0x80000000
Include/Base.h:977:#define ENCODE_ERROR(StatusCode)     ((RETURN_STATUS)(MAX_BIT | (StatusCode)))
Include/Ebc/ProcessorBind.h:94:#define MAX_BIT     ((UINTN)((1ULL << (sizeof (INTN) * 8 - 1))))
Include/Ia32/ProcessorBind.h:238:#define MAX_BIT     0x80000000
Include/Ipf/ProcessorBind.h:228:#define MAX_BIT     0x8000000000000000ULL
Include/Pi/PiMultiPhase.h:42:#define DXE_ERROR(StatusCode)  (MAX_BIT | (MAX_BIT >> 2) | StatusCode)
Include/Pi/PiMultiPhase.h:60:#define PI_ENCODE_WARNING(a)                ((MAX_BIT >> 2) | (a))
Include/Pi/PiMultiPhase.h:67:#define PI_ENCODE_ERROR(a)                  (MAX_BIT | (MAX_BIT >> 2) | (a))
Include/X64/ProcessorBind.h:252:#define MAX_BIT     0x8000000000000000ULL


Is there a reason the OEM ranges never got added?

#define OEM_ENCODE_ERROR(a)                  (MAX_BIT | (MAX_BIT >> 1) | (a))
#define OEM_ENCODE_WARNING(a)              ((MAX_BIT >> 1) | (a))




Thanks,

Andrew Fish


             reply	other threads:[~2018-02-20  0:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-20  0:19 Andrew Fish [this message]
2018-02-23  8:22 ` OEM EFI_STATUS Code Ranges? 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=827D6636-D89F-442B-B9FA-5542007C4B8A@apple.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