public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OEM EFI_STATUS Code Ranges?
@ 2018-02-20  0:19 Andrew Fish
  2018-02-23  8:22 ` Gao, Liming
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Fish @ 2018-02-20  0:19 UTC (permalink / raw)
  To: edk2-devel

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


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

end of thread, other threads:[~2018-02-23  8:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-20  0:19 OEM EFI_STATUS Code Ranges? Andrew Fish
2018-02-23  8:22 ` Gao, Liming

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