//\r
// Macro definitions for RISC-V architecture.\r
//\r
-#define RV_X(x, s, n) (((x) >> (s)) & ((1<<(n))-1))\r
-#define RISCV_IMM_BITS 12\r
-#define RISCV_IMM_REACH (1LL<<RISCV_IMM_BITS)\r
+#define RV_X(x, s, n) (((x) >> (s)) & ((1<<(n))-1))\r
+#define RISCV_IMM_BITS 12\r
+#define RISCV_IMM_REACH (1LL<<RISCV_IMM_BITS)\r
#define RISCV_CONST_HIGH_PART(VALUE) \\r
(((VALUE) + (RISCV_IMM_REACH/2)) & ~(RISCV_IMM_REACH-1))\r
\r
-\r
/**\r
Performs an Itanium-based specific relocation fixup and is a no-op on other\r
instruction sets.\r
**/\r
RETURN_STATUS\r
PeCoffLoaderRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
+ IN UINT16 *Reloc,\r
+ IN OUT CHAR8 *Fixup,\r
+ IN OUT CHAR8 **FixupData,\r
+ IN UINT64 Adjust\r
);\r
\r
-\r
/**\r
Performs an Itanium-based specific re-relocation fixup and is a no-op on other\r
instruction sets. This is used to re-relocated the image into the EFI virtual\r
**/\r
RETURN_STATUS\r
PeHotRelocateImageEx (\r
- IN UINT16 *Reloc,\r
- IN OUT CHAR8 *Fixup,\r
- IN OUT CHAR8 **FixupData,\r
- IN UINT64 Adjust\r
+ IN UINT16 *Reloc,\r
+ IN OUT CHAR8 *Fixup,\r
+ IN OUT CHAR8 **FixupData,\r
+ IN UINT64 Adjust\r
);\r
\r
-\r
/**\r
Returns TRUE if the machine type of PE/COFF image is supported. Supported\r
does not mean the image can be executed it means the PE/COFF loader supports\r
**/\r
VOID *\r
PeCoffLoaderImageAddress (\r
- IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext,\r
- IN UINTN Address,\r
- IN UINTN TeStrippedOffset\r
+ IN OUT PE_COFF_LOADER_IMAGE_CONTEXT *ImageContext,\r
+ IN UINTN Address,\r
+ IN UINTN TeStrippedOffset\r
);\r
\r
#endif\r