diff options
| author | Oliver Smith-Denny <osde@microsoft.com> | 2025-09-26 19:43:44 +0300 |
|---|---|---|
| committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-10-23 03:57:59 +0300 |
| commit | e67f405713f0cc1e8c4cb266bf9cd11a89ff162f (patch) | |
| tree | 40840d5dfd62722a67fc3ebccabcf9a568df7cae /BaseTools/Source/Python/AutoGen/ModuleAutoGen.py | |
| parent | f64b4065b7d36e188a5ac1d90dc4552e69c11660 (diff) | |
| download | edk2-e67f405713f0cc1e8c4cb266bf9cd11a89ff162f.tar.xz | |
UefiCpuPkg: Always Initialize Separate AP Exception Stacks
Today, CpuMpPei and CpuDxe only initialize separate exception
stacks for the APs when PcdCpuStackGuard is enabled so that
if a stack overflow occurs, hitting the guard page, the exception
can be handler with a separate stack.
However, this operation also creates a separate GDT for each AP.
This is a safer option than all APs sharing the BSP's GDT because
there are issues with concurrent access to the structures contained
within. Furthermore, even when a stack guard page is not present,
stack overflows can still occur and corrupt the stack; if an
exception is taken here, it is still valuable to have a separate
exception stack for sanity.
This commit updates CpuMpPei and CpuDxe to always create separate
exception stacks for the APs (and therefore separate GDTs).
Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/ModuleAutoGen.py')
0 files changed, 0 insertions, 0 deletions
