Andrew:
  PI, DXE and BASE status code macro are added to define their status code. 

  Now, there is no OEM status code definition. So, OEM status code macro is not 
added. Have you the usage on OEM status macro?

Thanks
Liming
>-----Original Message-----
>From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of
>Andrew Fish
>Sent: Tuesday, February 20, 2018 8:20 AM
>To: edk2-devel <edk2-devel@lists.01.org>
>Subject: [edk2] OEM EFI_STATUS Code Ranges?
>
>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
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to