Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: ee655c4d815231bd0916fbdde7a59f4dfdf0ee9f
https://github.com/tianocore/edk2/commit/ee655c4d815231bd0916fbdde7a59f4dfdf0ee9f
Author: Oliver Smith-Denny <[email protected]>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M MdeModulePkg/Core/DxeIplPeim/DxeLoad.c
Log Message:
-----------
MdeModulePkg: DxeIpl: Don't Duplicate Mem Alloc Hob for Stack
Currently, DxeIpl will allocate memory for the new DXE stack,
which creates a memory allocation HOB for that region. It will
then call UpdateStackHob() to find the stack HOB with the old
stack info and update the memory address/length to correspond
to the new stack. It then creates a new memory allocation HOB
for the old stack region as it needs to remain mapped.
This ends up creating two memory allocation HOBs for the new
stack: a regular memory allocation HOB for the AllocatePages()
call and then the stack HOB (which is a memory allocation HOB
with a special name).
When DXE Core ingests these, it will ignore one of the two HOBs
when it goes to allocate memory. However, this is incorrectly
describing handoff state. There never should be overlapping
memory allocation HOBs.
This commit updates DxeIpl behavior to instead find the old
stack HOB, convert it to a regular memory allocation HOB,
then find the memory allocation HOB for the new stack range
and convert it into the stack HOB.
Signed-off-by: Oliver Smith-Denny <[email protected]>
Commit: e9b31236bdbc6e0fe179c56d16c6ffe125c6069d
https://github.com/tianocore/edk2/commit/e9b31236bdbc6e0fe179c56d16c6ffe125c6069d
Author: Oliver Smith-Denny <[email protected]>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M EmbeddedPkg/Library/PrePiHobLib/Hob.c
Log Message:
-----------
EmbeddedPkg: PrePiHobLib: Don't Duplicate Stack Hob Mem Alloc
Currently, PrePiHobLib will produce two memory allocation
HOBs for the stack, based on the behavior it copied from
DxeIpl. This is an incorrect description of handoff state.
This commit follows the DxeIpl logic change to only produce
a single memory allocation HOB for the new stack. The
difference is that PrePiHobLib does not preserve the old
stack region and instead frees it. That behavior is
preserved.
Signed-off-by: Oliver Smith-Denny <[email protected]>
Commit: d68e8b775ffd142aa93648b4d45255d3a8233874
https://github.com/tianocore/edk2/commit/d68e8b775ffd142aa93648b4d45255d3a8233874
Author: Oliver Smith-Denny <[email protected]>
Date: 2026-09-03 (Thu, 03 Sep 2026)
Changed paths:
M UefiPayloadPkg/Library/PayloadEntryHobLib/Hob.c
Log Message:
-----------
UefiPayloadPkg: PayloadEntryHobLib: Don't Duplicate Stack Hob Mem Alloc
Currently, UefiPayloadPkg has the same incorrect behavior
copied from DxeIpl to have two memory allocation HOBs for
the DXE stack. This follows the previous two commits in
updating that behavior, with the same behavior as EmbeddedPkg
to free the old stack region, instead of preserving it as
DxeIpl does.
Signed-off-by: Oliver Smith-Denny <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/143032958ea9...d68e8b775ffd
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits