VOID\r
);\r
\r
+/**\r
+ Fetches the system UUID.\r
+\r
+ @param[out] SystemUuid The pointer to the buffer to store the System UUID.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+OemGetSystemUuid (\r
+ OUT GUID *SystemUuid\r
+ );\r
+\r
#endif // OEM_MISC_LIB_H_\r
/** @file\r
* OemMiscLib.c\r
*\r
+* Copyright (c) 2022, Ampere Computing LLC. All rights reserved.\r
* Copyright (c) 2021, NUVIA Inc. All rights reserved.\r
* Copyright (c) 2018, Hisilicon Limited. All rights reserved.\r
* Copyright (c) 2018, Linaro Limited. All rights reserved.\r
**/\r
\r
#include <Uefi.h>\r
+#include <Guid/ZeroGuid.h>\r
#include <Library/BaseMemoryLib.h>\r
#include <Library/DebugLib.h>\r
#include <Library/HiiLib.h>\r
ASSERT (FALSE);\r
return 1;\r
}\r
+\r
+/**\r
+ Fetches the system UUID.\r
+\r
+ @param[out] SystemUuid The pointer to the buffer to store the System UUID.\r
+\r
+**/\r
+VOID\r
+EFIAPI\r
+OemGetSystemUuid (\r
+ OUT GUID *SystemUuid\r
+ )\r
+{\r
+ ASSERT (FALSE);\r
+ CopyGuid (SystemUuid, &gZeroGuid);\r
+}\r
#/** @file\r
# OemMiscLib.inf\r
#\r
+# Copyright (c) 2022, Ampere Computing LLC. All rights reserved.\r
# Copyright (c) 2021, NUVIA Inc. All rights reserved.\r
# Copyright (c) 2018, Hisilicon Limited. All rights reserved.\r
# Copyright (c) 2018, Linaro Limited. All rights reserved.\r
[LibraryClasses]\r
BaseMemoryLib\r
DebugLib\r
+\r
+[Guids]\r
+ gZeroGuid\r
\r
Based on files under Nt32Pkg/MiscSubClassPlatformDxe/\r
\r
+ Copyright (c) 2022, Ampere Computing LLC. All rights reserved.<BR>\r
Copyright (c) 2021, NUVIA Inc. All rights reserved.<BR>\r
Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>\r
Copyright (c) 2015, Hisilicon Limited. All rights reserved.<BR>\r
\r
SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE1);\r
\r
- CopyGuid (&SmbiosRecord->Uuid, &InputData->Uuid);\r
+ OemGetSystemUuid (&SmbiosRecord->Uuid);\r
\r
OptionalStrStart = (CHAR8 *)(SmbiosRecord + 1);\r
UnicodeStrToAsciiStrS (Manufacturer, OptionalStrStart, ManuStrLen + 1);\r