TianoCore EDK2 master
Loading...
Searching...
No Matches
BasePeCoffLibInternals.h
Go to the documentation of this file.
1
10#ifndef __BASE_PECOFF_LIB_INTERNALS__
11#define __BASE_PECOFF_LIB_INTERNALS__
12
13#include <Base.h>
14#include <Library/PeCoffLib.h>
16#include <Library/DebugLib.h>
19
20//
21// Macro definitions for RISC-V architecture.
22//
23#define RV_X(x, s, n) (((x) >> (s)) & ((1<<(n))-1))
24#define RISCV_IMM_BITS 12
25#define RISCV_IMM_REACH (1LL<<RISCV_IMM_BITS)
26#define RISCV_CONST_HIGH_PART(VALUE) \
27 (((VALUE) + (RISCV_IMM_REACH/2)) & ~(RISCV_IMM_REACH-1))
28
41RETURN_STATUS
43 IN UINT16 *Reloc,
44 IN OUT CHAR8 *Fixup,
45 IN OUT CHAR8 **FixupData,
46 IN UINT64 Adjust
47 );
48
62RETURN_STATUS
64 IN UINT16 *Reloc,
65 IN OUT CHAR8 *Fixup,
66 IN OUT CHAR8 **FixupData,
67 IN UINT64 Adjust
68 );
69
81BOOLEAN
83 IN UINT16 Machine
84 );
85
95UINT16
98 );
99
110RETURN_STATUS
112 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext,
114 );
115
126VOID *
128 IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext,
129 IN UINTN Address,
130 IN UINTN TeStrippedOffset
131 );
132
133#endif
UINT64 UINTN
UINT16 PeCoffLoaderGetPeHeaderMagicValue(IN EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr)
VOID * PeCoffLoaderImageAddress(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, IN UINTN Address, IN UINTN TeStrippedOffset)
Definition: BasePeCoff.c:907
RETURN_STATUS PeCoffLoaderGetPeHeader(IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext, OUT EFI_IMAGE_OPTIONAL_HEADER_PTR_UNION Hdr)
Definition: BasePeCoff.c:61
RETURN_STATUS PeHotRelocateImageEx(IN UINT16 *Reloc, IN OUT CHAR8 *Fixup, IN OUT CHAR8 **FixupData, IN UINT64 Adjust)
RETURN_STATUS PeCoffLoaderRelocateImageEx(IN UINT16 *Reloc, IN OUT CHAR8 *Fixup, IN OUT CHAR8 **FixupData, IN UINT64 Adjust)
BOOLEAN PeCoffLoaderImageFormatSupported(IN UINT16 Machine)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284