mirror of https://github.com/acidanthera/audk.git
EmulatorPkg/Host: Remove orphaned SecImageRead()
This commit is contained in:
parent
9482b7ddc9
commit
293504a3e5
|
@ -842,45 +842,6 @@ CountSeparatorsInString (
|
||||||
return Count;
|
return Count;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
SecImageRead (
|
|
||||||
IN VOID *FileHandle,
|
|
||||||
IN UINTN FileOffset,
|
|
||||||
IN OUT UINTN *ReadSize,
|
|
||||||
OUT VOID *Buffer
|
|
||||||
)
|
|
||||||
|
|
||||||
/*++
|
|
||||||
|
|
||||||
Routine Description:
|
|
||||||
Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
FileHandle - The handle to the PE/COFF file
|
|
||||||
FileOffset - The offset, in bytes, into the file to read
|
|
||||||
ReadSize - The number of bytes to read from the file starting at FileOffset
|
|
||||||
Buffer - A pointer to the buffer to read the data into.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
EFI_SUCCESS - ReadSize bytes of data were read into Buffer from the PE/COFF file starting at FileOffset
|
|
||||||
|
|
||||||
**/
|
|
||||||
{
|
|
||||||
CHAR8 *Destination8;
|
|
||||||
CHAR8 *Source8;
|
|
||||||
UINTN Length;
|
|
||||||
|
|
||||||
Destination8 = Buffer;
|
|
||||||
Source8 = (CHAR8 *)((UINTN)FileHandle + FileOffset);
|
|
||||||
Length = *ReadSize;
|
|
||||||
while (Length--) {
|
|
||||||
*(Destination8++) = *(Source8++);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
BOOLEAN
|
BOOLEAN
|
||||||
IsPdbFile (
|
IsPdbFile (
|
||||||
IN CONST CHAR8 *PdbFileName
|
IN CONST CHAR8 *PdbFileName
|
||||||
|
|
|
@ -226,15 +226,6 @@ GetImageReadFunction (
|
||||||
IN EFI_PHYSICAL_ADDRESS *TopOfMemory
|
IN EFI_PHYSICAL_ADDRESS *TopOfMemory
|
||||||
);
|
);
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
SecImageRead (
|
|
||||||
IN VOID *FileHandle,
|
|
||||||
IN UINTN FileOffset,
|
|
||||||
IN OUT UINTN *ReadSize,
|
|
||||||
OUT VOID *Buffer
|
|
||||||
);
|
|
||||||
|
|
||||||
CHAR16 *
|
CHAR16 *
|
||||||
AsciiToUnicode (
|
AsciiToUnicode (
|
||||||
IN CHAR8 *Ascii,
|
IN CHAR8 *Ascii,
|
||||||
|
|
|
@ -840,45 +840,6 @@ SecUefiImageGetEntryPoint (
|
||||||
return EFI_SUCCESS;
|
return EFI_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
SecImageRead (
|
|
||||||
IN VOID *FileHandle,
|
|
||||||
IN UINTN FileOffset,
|
|
||||||
IN OUT UINTN *ReadSize,
|
|
||||||
OUT VOID *Buffer
|
|
||||||
)
|
|
||||||
|
|
||||||
/*++
|
|
||||||
|
|
||||||
Routine Description:
|
|
||||||
Support routine for the PE/COFF Loader that reads a buffer from a PE/COFF file
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
FileHandle - The handle to the PE/COFF file
|
|
||||||
FileOffset - The offset, in bytes, into the file to read
|
|
||||||
ReadSize - The number of bytes to read from the file starting at FileOffset
|
|
||||||
Buffer - A pointer to the buffer to read the data into.
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
EFI_SUCCESS - ReadSize bytes of data were read into Buffer from the PE/COFF file starting at FileOffset
|
|
||||||
|
|
||||||
--*/
|
|
||||||
{
|
|
||||||
CHAR8 *Destination8;
|
|
||||||
CHAR8 *Source8;
|
|
||||||
UINTN Length;
|
|
||||||
|
|
||||||
Destination8 = Buffer;
|
|
||||||
Source8 = (CHAR8 *)((UINTN)FileHandle + FileOffset);
|
|
||||||
Length = *ReadSize;
|
|
||||||
while (Length--) {
|
|
||||||
*(Destination8++) = *(Source8++);
|
|
||||||
}
|
|
||||||
|
|
||||||
return EFI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
CHAR16 *
|
CHAR16 *
|
||||||
AsciiToUnicode (
|
AsciiToUnicode (
|
||||||
IN CHAR8 *Ascii,
|
IN CHAR8 *Ascii,
|
||||||
|
|
|
@ -121,35 +121,6 @@ Returns:
|
||||||
--*/
|
--*/
|
||||||
;
|
;
|
||||||
|
|
||||||
EFI_STATUS
|
|
||||||
EFIAPI
|
|
||||||
SecImageRead (
|
|
||||||
IN VOID *FileHandle,
|
|
||||||
IN UINTN FileOffset,
|
|
||||||
IN OUT UINTN *ReadSize,
|
|
||||||
OUT VOID *Buffer
|
|
||||||
)
|
|
||||||
|
|
||||||
/*++
|
|
||||||
|
|
||||||
Routine Description:
|
|
||||||
|
|
||||||
TODO: Add function description
|
|
||||||
|
|
||||||
Arguments:
|
|
||||||
|
|
||||||
FileHandle - TODO: add argument description
|
|
||||||
FileOffset - TODO: add argument description
|
|
||||||
ReadSize - TODO: add argument description
|
|
||||||
Buffer - TODO: add argument description
|
|
||||||
|
|
||||||
Returns:
|
|
||||||
|
|
||||||
TODO: add return values
|
|
||||||
|
|
||||||
--*/
|
|
||||||
;
|
|
||||||
|
|
||||||
CHAR16 *
|
CHAR16 *
|
||||||
AsciiToUnicode (
|
AsciiToUnicode (
|
||||||
IN CHAR8 *Ascii,
|
IN CHAR8 *Ascii,
|
||||||
|
|
Loading…
Reference in New Issue