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
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to