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
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
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
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
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
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
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
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
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