Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Hao Wu <Hao.a.wu@intel.com>
Val = *(UINT32*)(Ptr + sizeof (UINT32));\r
\r
Val <<= 32;\r
- Val |= *(UINT32*)Ptr;\r
+ Val |= (UINT64)*(UINT32*)Ptr;\r
\r
Print (Format, Val);\r
}\r
UINT8 Index;\r
CHAR8 Ptr[4];\r
\r
+ ZeroMem (Ptr, sizeof (Ptr));\r
Index = 0;\r
\r
// Convert to Upper case and convert to ASCII\r
gShellAcpiViewHiiHandle = NULL;\r
\r
// Check Shell Profile Debug1 bit of the profiles mask\r
- if ((FixedPcdGet8 (PcdShellProfileMask) & BIT1) == 0) {\r
+ if ((PcdGet8 (PcdShellProfileMask) & BIT1) == 0) {\r
return EFI_SUCCESS;\r
}\r
\r