]> git.proxmox.com Git - mirror_edk2.git/blobdiff - DuetPkg/DxeIpl/PpisNeededByDxeCore.c
MdeModulePkg/BDS: Fix a buffer overflow bug
[mirror_edk2.git] / DuetPkg / DxeIpl / PpisNeededByDxeCore.c
index a1b9b039891f9e2128461e47fea15903e8ee627e..e08a148543ad7ea6fcb22e55fe35b78cc28f2f1f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006 - 2011, 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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -48,29 +48,10 @@ Returns:
 \r
 --*/\r
 {\r
-  //EFI_PEI_PE_COFF_LOADER_PROTOCOL           *PeCoffLoader;\r
-  //EFI_DECOMPRESS_PROTOCOL                   *EfiDecompress;\r
-  //EFI_TIANO_DECOMPRESS_PROTOCOL             *TianoDecompress;\r
   EFI_REPORT_STATUS_CODE                    ReportStatusCode;\r
 \r
-  //InstallEfiPeiFlushInstructionCache (&FlushInstructionCache);\r
-  //Hob->FlushInstructionCache.Interface = FlushInstructionCache;\r
-\r
-  // R9 do not need this protocol.\r
-  // InstallEfiPeiTransferControl (&TransferControl);\r
-  // Hob->TransferControl.Interface = TransferControl;\r
-\r
-  //InstallEfiPeiPeCoffLoader (NULL, &PeCoffLoader, NULL);\r
-  //Hob->PeCoffLoader.Interface = PeCoffLoader;\r
-\r
-  //InstallEfiDecompress (&EfiDecompress);\r
-  //Hob->EfiDecompress.Interface = EfiDecompress;\r
-\r
-  //InstallTianoDecompress (&TianoDecompress);\r
-  //Hob->TianoDecompress.Interface = TianoDecompress;\r
-\r
   InstallSerialStatusCode (&ReportStatusCode);\r
-  Hob->SerialStatusCode.Interface = (VOID *)(UINTN)ReportStatusCode;\r
+  Hob->SerialStatusCode.Interface = (EFI_PHYSICAL_ADDRESS) (UINTN) ReportStatusCode;\r
 \r
   return EFI_SUCCESS;\r
 }\r