RISC-V MDE definitions and library instances.
AbnerChang (2):
MdePkg: Definitions for RISC-V arch.
Add RISC-V architecture image file machine code.
Add RISC-V architecture relocation type.
Add RISC-V architecture context buffer.
Add RISC-V architecture exception types.
Add RISC-V architecture PXE tag definition.
Add RISC-V architecture EFI image machine type.
Add RISC-V architecture removable media boot path.
Add RISC-V architecture processor binding.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Abner Chang<[email protected]>
MdePkg: MDE implementations for RISC-V arch.
The implementations of RISC-V MDE base libraries.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Abner Chang<[email protected]>
MdePkg/Include/IndustryStandard/PeImage.h | 13 +-
MdePkg/Include/Library/BaseLib.h | 46 +++
MdePkg/Include/Protocol/DebugSupport.h | 55 +++
MdePkg/Include/Protocol/PxeBaseCode.h | 7 +
MdePkg/Include/RiscV64/ProcessorBind.h | 328 ++++++++++++++++
MdePkg/Include/Uefi/UefiBaseType.h | 25 ++
MdePkg/Include/Uefi/UefiSpec.h | 10 +
.../BaseCacheMaintenanceLib.inf | 4 +
.../Library/BaseCacheMaintenanceLib/RiscVCache.c | 228 +++++++++++
MdePkg/Library/BaseCpuLib/BaseCpuLib.inf | 4 +
MdePkg/Library/BaseCpuLib/RiscV/Cpu.s | 25 ++
.../BaseIoLibIntrinsic/BaseIoLibIntrinsic.inf | 8 +-
MdePkg/Library/BaseIoLibIntrinsic/IoLibRiscV.c | 418 +++++++++++++++++++++
MdePkg/Library/BaseLib/BaseLib.inf | 14 +
MdePkg/Library/BaseLib/RiscV64/CpuBreakpoint.c | 33 ++
MdePkg/Library/BaseLib/RiscV64/CpuPause.c | 35 ++
MdePkg/Library/BaseLib/RiscV64/DisableInterrupts.c | 30 ++
MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c | 31 ++
MdePkg/Library/BaseLib/RiscV64/GetInterruptState.c | 42 +++
.../Library/BaseLib/RiscV64/InternalSwitchStack.c | 61 +++
MdePkg/Library/BaseLib/RiscV64/LongJump.c | 38 ++
.../Library/BaseLib/RiscV64/RiscVCpuBreakpoint.S | 20 +
MdePkg/Library/BaseLib/RiscV64/RiscVCpuPause.S | 20 +
MdePkg/Library/BaseLib/RiscV64/RiscVInterrupt.S | 33 ++
.../Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S | 63 ++++
MdePkg/Library/BaseLib/RiscV64/Unaligned.c | 270 +++++++++++++
MdePkg/Library/BasePeCoffLib/BasePeCoff.c | 3 +-
MdePkg/Library/BasePeCoffLib/BasePeCoffLib.inf | 5 +
MdePkg/Library/BasePeCoffLib/BasePeCoffLib.uni | 2 +
.../Library/BasePeCoffLib/BasePeCoffLibInternals.h | 1 +
.../Library/BasePeCoffLib/RiscV/PeCoffLoaderEx.c | 161 ++++++++
.../BaseSynchronizationLib.inf | 5 +
.../RiscV64/Synchronization.c | 147 ++++++++
MdePkg/MdePkg.dec | 9 +
34 files changed, 2188 insertions(+), 6 deletions(-)
create mode 100644 MdePkg/Include/RiscV64/ProcessorBind.h
create mode 100644 MdePkg/Library/BaseCacheMaintenanceLib/RiscVCache.c
create mode 100644 MdePkg/Library/BaseCpuLib/RiscV/Cpu.s
create mode 100644 MdePkg/Library/BaseIoLibIntrinsic/IoLibRiscV.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/CpuBreakpoint.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/CpuPause.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/DisableInterrupts.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/EnableInterrupts.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/GetInterruptState.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/LongJump.c
create mode 100644 MdePkg/Library/BaseLib/RiscV64/RiscVCpuBreakpoint.S
create mode 100644 MdePkg/Library/BaseLib/RiscV64/RiscVCpuPause.S
create mode 100644 MdePkg/Library/BaseLib/RiscV64/RiscVInterrupt.S
create mode 100644 MdePkg/Library/BaseLib/RiscV64/RiscVSetJumpLongJump.S
create mode 100644 MdePkg/Library/BaseLib/RiscV64/Unaligned.c
create mode 100644 MdePkg/Library/BasePeCoffLib/RiscV/PeCoffLoaderEx.c
create mode 100644
MdePkg/Library/BaseSynchronizationLib/RiscV64/Synchronization.c
--
1.9.5.msysgit.0
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel