This is a patch series that contains: 1.Loongarch add flash device driver. 2.Loongarch add nvme device driver. 3.Optimize the mmu lib of loongarch. 4.Enable zero address protection.
v4 changes: -Modify the commit messgae of patch1 and patch2. v3 changes: - Split flash driver patch. v2 changes: - Split the MMU lib-related patches further. - Remove the for loop of flash information lookup in VirtNorFlashPlatformLib Because the Loongarch virtual machine only emulates one flash . - Add the necessary comments in VirtNorFlashPlatformLib. - Remove the hard coding associated with the Flash base address. - Optimize the process of converting huge pages to page table entries in MMU lib. Cc: Ard Biesheuvel <[email protected]> Cc: Bibo Mao <[email protected]> Cc: Chao Li <[email protected]> Cc: Leif Lindholm <[email protected]> Cc: Liming Gao <[email protected]> Cc: Michael D Kinney <[email protected]> xianglai li (8): Platform/Loongson: Add bootmode support. Platform/Loongson: Add nvme device driver for loongarch. Platform/Loongson: Add pflash driver. Platform/Loongson: Support pflash for loongarch. Platform/Loongson: Modify the page table entry access priority. Platform/Loongson: Optimize page table entry null determination. Platform/Loongson: Optimize the huge page and page entry conversion. Platform/Loongson: Enable zero address protection. .../Library/MmuLib/MmuBaseLibPei.inf | 2 + .../Library/MmuLib/MmuLibCore.c | 119 +++++++++++---- .../Library/MmuLib/MmuLibCorePei.c | 5 + .../LoongArchQemuPkg/Library/MmuLib/page.h | 5 +- .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 141 ++++++++++++++++++ .../NorFlashQemuLib/NorFlashQemuLib.inf | 43 ++++++ .../Loongson/LoongArchQemuPkg/Loongson.dsc | 22 ++- .../Loongson/LoongArchQemuPkg/Loongson.fdf | 8 +- .../LoongArchQemuPkg/PlatformPei/Platform.c | 5 + .../LoongArchQemuPkg/VarStore.fdf.inc | 67 +++++++++ 10 files changed, 375 insertions(+), 42 deletions(-) create mode 100644 Platform/Loongson/LoongArchQemuPkg/Library/NorFlashQemuLib/NorFlashQemuLib.c create mode 100644 Platform/Loongson/LoongArchQemuPkg/Library/NorFlashQemuLib/NorFlashQemuLib.inf create mode 100644 Platform/Loongson/LoongArchQemuPkg/VarStore.fdf.inc -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#98425): https://edk2.groups.io/g/devel/message/98425 Mute This Topic: https://groups.io/mt/96239121/21656 Group Owner: [email protected] Unsubscribe: https://edk2.groups.io/g/devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
