]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/PeiExtractGuidedSectionLib/PeiExtractGuidedSectionLib.c
MdePkg BaseMemoryLibSse2: Convert Ia32/ZeroMem.asm to NASM
[mirror_edk2.git] / MdePkg / Library / PeiExtractGuidedSectionLib / PeiExtractGuidedSectionLib.c
index ffb11273bd9287e2d395d4e98a533ca3abf1846a..c471ae9ab3c0fe1b2bccc85b5c4dab69b3cd8eae 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Provide generic extract guided section functions for PEI phase.\r
 \r
-  Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2007 - 2012, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -243,6 +243,16 @@ ExtractGuidedSectionRegisterHandlers (
   HandlerInfo->ExtractDecodeHandlerTable [HandlerInfo->NumberOfExtractHandler] = DecodeHandler;\r
   HandlerInfo->ExtractGetInfoHandlerTable [HandlerInfo->NumberOfExtractHandler++] = GetInfoHandler;\r
 \r
+  //\r
+  // Build the Guided Section GUID HOB to record the GUID itself.\r
+  // Then the content of the GUIDed HOB will be the same as the GUID value itself.\r
+  //\r
+  BuildGuidDataHob (\r
+    (EFI_GUID *) SectionGuid,\r
+    (VOID *) SectionGuid,\r
+    sizeof (GUID)\r
+    );\r
+\r
   return RETURN_SUCCESS;\r
 }\r
 \r