[edk2-devel] [edk2-platforms][PATCH V2 08/16] Platform/Loongson: Add CPU DXE driver.

2022-03-24 Thread xianglai
The driver produces EFI_CPU_ARCH_PROTOCOL, Initialize the exception entry address. Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.c | 382 ++ .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.h | 153 +++ .../Drivers/CpuDxe/CpuDxe.inf

[edk2-devel] [edk2-platforms][PATCH V2 05/16] Platform/Loongson: Add MmuLib.

2022-03-24 Thread xianglai
Read the memory map information through the QemuFwCfg interface, then build the page table through the memory map information, and finally enable Mmu. Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Cpu.h| 29 + .../LoongArchQemuPkg/Include/Library/MmuLib.h | 85

[edk2-devel] [edk2-platforms][PATCH V2 07/16] Platform/Loongson: Support PEI phase.

2022-03-24 Thread xianglai
Platform PEI module for LoongArch platform initialization. Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 22 ++ .../Loongson/LoongArchQemuPkg/Loongson.dsc| 66 - .../Loongson/LoongArchQemuPkg/Loongson.fdf| 51 .../LoongArchQemuPkg/PlatformPei

[edk2-devel] [edk2-platforms][PATCH V2 06/16] Platform/Loongson: Add StableTimerLib.

2022-03-24 Thread xianglai
This library provides a delay interface and a timing interface. Signed-off-by: xianglai li --- .../Include/Library/StableTimer.h | 42 +++ .../Library/StableTimerLib/Count.S| 26 ++ .../Library/StableTimerLib/TimerLib.c | 262 ++ .../Library

[edk2-devel] [edk2-platforms][PATCH V2 03/16] Platform/Loongson: Add PeiServicesTablePointerLib.

2022-03-24 Thread xianglai
Use a register to save PeiServicesTable pointer, This lib Provides PeiServicesTable pointer saving and retrieval services. Signed-off-by: xianglai li --- .../PeiServicesTablePointer.c | 78 +++ .../PeiServicesTablePointerLib.inf| 32 2 files

[edk2-devel] [edk2-platforms][PATCH V2 04/16] Platform/Loongson: Add QemuFwCfgLib.

2022-03-24 Thread xianglai
QemuFwCfgLib for PEI phase. This library obtains the QemuFWCfg base address by directly parsing the fdt, and reads and writes the data in the QemuFWCfg by operating on the QemuFWCfg base address. Signed-off-by: xianglai li --- .../Include/IndustryStandard/QemuFwCfg.h | 95

[edk2-devel] [edk2-platforms][PATCH V2 01/16] Platform/Loongson: Add Serial Port library

2022-03-24 Thread xianglai
Serial Port library for LoongarchQemuPkg Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Cpu.h| 344 ++ .../Include/LoongArchQemuPlatform.h | 103 +++ .../Library/SerialPortLib/SerialPortLib.c | 612 ++ .../Library/SerialPortLib

[edk2-devel] [edk2-platforms][PATCH V2 00/16] Platform: Add Loongson support.

2022-03-24 Thread xianglai
/qemu/tree/tcg-dev The LoongArch Documentation in Loongson community: https://github.com/loongson/LoongArch-Documentation/tree/main/docs xianglai li (16): Platform/Loongson: Add Serial Port library Platform/Loongson: Support SEC And Add Readme.md Platform/Loongson: Add PeiServicesTablePointerLib

Re: [edk2-devel] [edk2-platforms][PATCH V1 00/15] Platform: Add Loongson support

2022-03-07 Thread xianglai
://github.com/loongson/LoongArch-Documentation/tree/main/docs If there is a problem with my submission process, please provide some suggestions. Thank you very much. xianglai li. -原始邮件- 发件人: xianglai 发送时间: 2022-03-02 16:44:32 (星期三) 收件人: devel@edk2.groups.io 抄送: 主题: [edk2-devel] [edk2

[edk2-devel] [edk2-platforms][PATCH V1 04/15] Platform/Loongson: Add QemuFwCfgLib.

2022-03-02 Thread xianglai
QemuFwCfgLib for PEI phase. This library obtains the QemuFWCfg base address by directly parsing the fdt, and reads and writes the data in the QemuFWCfg by operating on the QemuFWCfg base address. Signed-off-by: xianglai li --- .../Include/IndustryStandard/QemuFwCfg.h | 95

[edk2-devel] [edk2-platforms][PATCH V1 12/15] Platform/Loongson: Add RealTime Clock lib.

2022-03-02 Thread xianglai
This library provides interfaces such as real-time clock initialization to get time and setting time. Signed-off-by: xianglai li --- .../LsRealTimeClockLib/LsRealTimeClock.h | 41 +++ .../LsRealTimeClockLib/LsRealTimeClockLib.c | 343 ++ .../LsRealTimeClockLib

[edk2-devel] [edk2-platforms][PATCH V1 13/15] Platform/Loongson: Add Platform Boot Manager Lib.

2022-03-02 Thread xianglai
The Library provides Boot Manager interfaces. Signed-off-by: xianglai li --- .../PlatformBootManagerLib/PlatformBm.c | 761 ++ .../PlatformBootManagerLib/PlatformBm.h | 126 +++ .../PlatformBootManagerLib.inf| 78 ++ .../PlatformBootManagerLib

[edk2-devel] [edk2-platforms][PATCH V1 09/15] Platform/Loongson: Add CPU DXE driver.

2022-03-02 Thread xianglai
The driver produces EFI_CPU_ARCH_PROTOCOL, Initialize the exception entry address. Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.c | 382 ++ .../LoongArchQemuPkg/Drivers/CpuDxe/CpuDxe.h | 153 +++ .../Drivers/CpuDxe/CpuDxe.inf

[edk2-devel] [edk2-platforms][PATCH V1 15/15] Platform/Loongson: Support Dxe

2022-03-02 Thread xianglai
Support Dxe for LoogArch. Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 14 +- .../Loongson/LoongArchQemuPkg/Loongson.dsc| 385 +- .../Loongson/LoongArchQemuPkg/Loongson.fdf| 241 +++ .../LoongArchQemuPkg/Loongson.fdf.inc

[edk2-devel] [edk2-platforms][PATCH V1 08/15] Platform/Loongson: Support PEI phase.

2022-03-02 Thread xianglai
Platform PEI module for LoongArch platform initialization. Signed-off-by: xianglai li --- .../Loongson/LoongArchQemuPkg/Loongson.dec| 22 ++ .../Loongson/LoongArchQemuPkg/Loongson.dsc| 66 - .../Loongson/LoongArchQemuPkg/Loongson.fdf| 51 .../LoongArchQemuPkg/PlatformPei

[edk2-devel] [edk2-platforms][PATCH V1 14/15] Platform/Loongson: Add Reset System Lib.

2022-03-02 Thread xianglai
This library provides interfaces related to restart and shutdown. Signed-off-by: xianglai li --- .../Library/ResetSystemLib/ResetSystemLib.c | 155 ++ .../Library/ResetSystemLib/ResetSystemLib.inf | 40 + 2 files changed, 195 insertions(+) create mode 100644 Platform

[edk2-devel] [edk2-platforms][PATCH V1 10/15] Platform/Loongson: Add PciCpuIoDxe driver.

2022-03-02 Thread xianglai
Add PCI CpuIo protocol.there is no fix translation offset between I/O port accesses and MMIO accesses. Add PciCpuIo2Dxe driver to implement EFI_CPU_IO2_PROTOCOL to add the translation for IO access. Signed-off-by: xianglai li --- .../Drivers/PciCpuIo2Dxe/PciCpuIo2Dxe.c | 548

[edk2-devel] [edk2-platforms][PATCH V1 06/15] Platform/Loongson: Add MmuLib.

2022-03-02 Thread xianglai
Read the memory map information through the QemuFwCfg interface, then build the page table through the memory map information, and finally enable Mmu. Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/MmuLib.h | 85 ++ .../LoongArchQemuPkg/Library/MmuLib/Mmu.S | 35

[edk2-devel] [edk2-platforms][PATCH V1 05/15] Platform/Loongson: Add BpiLib.

2022-03-02 Thread xianglai
This library provides interfaces for creating kernel boot parameters. Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Bpi.h| 77 +++ .../LoongArchQemuPkg/Library/BpiLib/Bpi.c | 492 ++ .../Library/BpiLib/BpiLib.inf | 38 ++ 3 files

[edk2-devel] [edk2-platforms][PATCH V1 00/15] Platform: Add Loongson support

2022-03-02 Thread xianglai
/. xianglai li (15): Platform/Loongson: Add Serial Port library Platform/Loongson: Support SEC And Add Readme.md Platform/Loongson: Add PeiServicesTablePointerLib. Platform/Loongson: Add QemuFwCfgLib. Platform/Loongson: Add BpiLib. Platform/Loongson: Add MmuLib. Platform/Loongson: Add

[edk2-devel] [edk2-platforms][PATCH V1 02/15] Platform/Loongson: Support SEC And Add Readme.md

2022-03-02 Thread xianglai
Add SEC Code And Readme.md for LoongArchQemu Signed-off-by: xianglai li Signed-off-by: xianglai li --- .../Include/LoongArchAsmMacro.h | 23 + .../Loongson/LoongArchQemuPkg/Loongson.dec| 38 ++ .../Loongson/LoongArchQemuPkg/Loongson.dsc| 133 + .../Loongson

[edk2-devel] [edk2-platforms][PATCH V1 11/15] Platform/Loongson: Add timer Dxe driver.

2022-03-02 Thread xianglai
This driver produces Timer Architectural Protocol, Registers a timer interrupt and initializes the timer. Signed-off-by: xianglai li --- .../Drivers/StableTimerDxe/Timer.c| 405 ++ .../Drivers/StableTimerDxe/Timer.h| 166 +++ .../Drivers

[edk2-devel] [edk2-platforms][PATCH V1 07/15] Platform/Loongson: Add StableTimerLib.

2022-03-02 Thread xianglai
This library provides a delay interface and a timing interface. Signed-off-by: xianglai li --- .../Include/Library/StableTimer.h | 42 +++ .../Library/StableTimerLib/Count.S| 26 ++ .../Library/StableTimerLib/TimerLib.c | 262 ++ .../Library

[edk2-devel] [edk2-platforms][PATCH V1 03/15] Platform/Loongson: Add PeiServicesTablePointerLib.

2022-03-02 Thread xianglai
Use a register to save PeiServicesTable pointer, This lib Provides PeiServicesTable pointer saving and retrieval services. Signed-off-by: xianglai li --- .../PeiServicesTablePointer.c | 78 +++ .../PeiServicesTablePointerLib.inf| 32 2 files

[edk2-devel] [edk2-platforms][PATCH V1 01/15] Platform/Loongson: Add Serial Port library

2022-03-02 Thread xianglai
Serial Port library for LoongarchQemuPkg Signed-off-by: xianglai li --- .../LoongArchQemuPkg/Include/Library/Cpu.h| 344 ++ .../Include/LoongArchQemuPlatform.h | 103 +++ .../Library/SerialPortLib/SerialPortLib.c | 614 ++ .../Library/SerialPortLib

[edk2-devel] [PATCH] OvmfPkg-EmuVariableFvbRuntimeDxe: Support Access To Memory Above 4G

2021-12-05 Thread xianglai
the forced type conversion of UINT32. 2.Use UINT64 type variables. Signed-off-by: xianglai li --- OvmfPkg/AmdSev/AmdSevX64.dsc | 2 ++ OvmfPkg/Bhyve/BhyveX64.dsc | 2 ++ OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.c | 8 +++- OvmfPkg/EmuVariableFvbRuntimeDxe/Fvb.inf | 4

<    1   2   3