[edk2-devel] [GSOC 2022] Adding Rust support to EDK II: Introducing Myself

2022-05-20 Thread Ayush Singh
Hello Everyone, I am Ayush Singh, a 2nd-year university student from the Indian Institute of Technology (Indian School of Mines), Dhanbad, India. In Google Summer of Code 2022, I will be working on Adding Rust support to EDK II. The original Task from the wiki can be found here: https://github.com

Re: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/Build: Compress CpuMpPei.inf

2022-05-20 Thread Nate DeSimone
Reviewed-by: Nate DeSimone -Original Message- From: devel@edk2.groups.io On Behalf Of Oram, Isaac W Sent: Wednesday, May 18, 2022 4:33 PM To: devel@edk2.groups.io Cc: Desimone, Nathaniel L ; Chiu, Chasel Subject: [edk2-devel][edk2-platforms][PATCH V1 1/1] WhitleyOpenBoardPkg/Build: Co

[edk2-devel] [PATCH 5/5] CpuException: Add InitializeSeparateExceptionStacks

2022-05-20 Thread Ni, Ray
Today InitializeCpuExceptionHandlersEx is called from three modules: 1. DxeCore (links to DxeCpuExceptionHandlerLib) DxeCore expects it initializes the IDT entries as well as assigning separate stacks for #DF and #PF. 2. CpuMpPei (links to PeiCpuExceptionHandlerLib) and CpuDxe (links to

[edk2-devel] [PATCH 4/5] CpuException: Remove InitializeCpuInterruptHandlers

2022-05-20 Thread Ni, Ray
InitializeCpuExceptionHandlers() expects caller allocates IDT while InitializeCpuInterruptHandlers() allocates 256 IDT entries itself. InitializeCpuExceptionHandlers() fills max 32 IDT entries allocated by caller. If caller allocates 10 entries, the API just fills 10 IDT entries. The inconsistenc

[edk2-devel] [PATCH 3/5] CpuException: Avoid allocating page but using global variables

2022-05-20 Thread Ni, Ray
Signed-off-by: Ray Ni Cc: Eric Dong --- .../CpuExceptionHandlerLib/DxeException.c | 24 --- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c b/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c inde

[edk2-devel] [PATCH 2/5] CpuException: Init global variables in-place

2022-05-20 Thread Ni, Ray
Additionally removed two useless global variables: "SPIN_LOCK mDisplayMessageSpinLock" from SMM instance. "UINTN mEnabledInterruptNum" from DXE instance. Signed-off-by: Ray Ni Cc: Eric Dong --- .../Library/CpuExceptionHandlerLib/DxeException.c | 11 ++- .../Library/CpuExceptionHandler

[edk2-devel] [PATCH 1/5] CpuException: Avoid allocating code pages for DXE instance

2022-05-20 Thread Ni, Ray
Today the DXE instance allocates code page and then copies the IDT vectors to the allocated code page. Then it fixes up the vector number in the IDT vector. But if we update the NASM file to generate 256 IDT vectors, there is no need to do the copy and fix-up. A side effect is up to 4096 bytes (H

[edk2-devel] [PATCH 0/5] Code refactoring in CpuExceptionHandlerLib

2022-05-20 Thread Ni, Ray
Ray Ni (5): CpuException: Avoid allocating code pages for DXE instance CpuException: Init global variables in-place CpuException: Avoid allocating page but using global variables CpuException: Remove InitializeCpuInterruptHandlers CpuException: Add InitializeSeparateExceptionStacks Md

[edk2-devel] [PATCH] REF:https://bugzilla.tianocore.org/show_bug.cgi?id=3898 S3 Resume flow may result in executing garbage address.

2022-05-20 Thread cbduggap
Cc: Ray Ni Cc: Jian J Wang Signed-off-by: cbduggap --- MdeModulePkg/Core/DxeIplPeim/DxeLoad.c | 1 + 1 file changed, 1 insertion(+) diff --git a/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c b/MdeModulePkg/Core/DxeIplPeim/DxeLoad.c index 2c19f1a507..16319e2fd3 100644 --- a/MdeModulePkg/Core/DxeIplP