]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c
1. Update DxeIpl PEIM to not use PeCoffLoaderLib to load DXE core. Instead, we choose...
[mirror_edk2.git] / MdeModulePkg / Core / DxeIplPeim / Ipf / ImageRead.c
diff --git a/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c b/MdeModulePkg/Core/DxeIplPeim/Ipf/ImageRead.c
deleted file mode 100644 (file)
index eeb6bc8..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/** @file\r
-  This module loads an image to memory for IPF Cpu architecture.\r
-\r
-Copyright (c) 2006 - 2008, Intel Corporation. <BR>\r
-All rights reserved. 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
-\r
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
-**/\r
-\r
-#include "DxeIpl.h"\r
-\r
-\r
-\r
-/**\r
-  Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file\r
-\r
-  @param  FileHandle   The handle to the PE/COFF file \r
-  @param  FileOffset   The offset, in bytes, into the file to read \r
-  @param  ReadSize     The number of bytes to read from the file starting at \r
-                       FileOffset \r
-  @param  Buffer       A pointer to the buffer to read the data into. \r
-\r
-  @retval EFI_SUCCESS  ReadSize bytes of data were read into Buffer from the \r
-                       PE/COFF file starting at FileOffset\r
-\r
-**/\r
-EFI_STATUS\r
-PeiImageRead (\r
-  IN     VOID    *FileHandle,\r
-  IN     UINTN   FileOffset,\r
-  IN OUT UINTN   *ReadSize,\r
-  OUT    VOID    *Buffer\r
-  )\r
-{\r
-  CHAR8 *Destination8;\r
-  CHAR8 *Source8;\r
-  volatile UINTN Length;\r
-\r
-  Destination8  = Buffer;\r
-  Source8       = (CHAR8 *) ((UINTN) FileHandle + FileOffset);\r
-  Length        = *ReadSize;\r
-  CopyMem (Destination8, Source8, Length);\r
-\r
-  return EFI_SUCCESS;\r
-}\r
-\r