\r
#include "DxeIpl.h"\r
\r
+\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
EFIAPI\r
PeiImageRead (\r
IN OUT UINTN *ReadSize,\r
OUT VOID *Buffer\r
)\r
-/*++\r
-\r
-Routine Description:\r
-\r
- Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file\r
-\r
-Arguments:\r
-\r
- FileHandle - The handle to the PE/COFF file\r
-\r
- FileOffset - The offset, in bytes, into the file to read\r
-\r
- ReadSize - The number of bytes to read from the file starting at FileOffset\r
-\r
- Buffer - A pointer to the buffer to read the data into.\r
-\r
-Returns:\r
-\r
- EFI_SUCCESS - ReadSize bytes of data were read into Buffer from the PE/COFF file starting at FileOffset\r
-\r
---*/\r
{\r
UINT8 *Destination32;\r
UINT8 *Source32;\r
return EFI_SUCCESS;\r
}\r
\r
-EFI_STATUS\r
-GetImageReadFunction (\r
- IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
- )\r
-/*++\r
\r
-Routine Description:\r
- Support routine to return the PE32 Image Reader.\r
- If the PeiImageRead() function is less than a page\r
- in legnth. If the function is more than a page the DXE IPL will crash!!!!\r
\r
-Arguments:\r
- ImageContext - The context of the image being loaded\r
\r
-Returns:\r
- EFI_SUCCESS - If Image function location is found\r
\r
---*/\r
+/**\r
+ This function simply retrieves the function pointer of ImageRead in\r
+ ImageContext structure.\r
+ \r
+ @param ImageContext A pointer to the structure of \r
+ PE_COFF_LOADER_IMAGE_CONTEXT\r
+ \r
+ @retval EFI_SUCCESS This function always return EFI_SUCCESS.\r
+\r
+**/\r
+EFI_STATUS\r
+GetImageReadFunction (\r
+ IN PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext\r
+ )\r
{\r
VOID *MemoryBuffer;\r
\r