Skip to content
Commit f80f0522 authored by Sunil V L's avatar Sunil V L Committed by mergify[bot]
Browse files

OvmfPkg/RiscVVirt: Add Stack HOB

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4350



Currently, stack HOB is not created for the stack memory. This causes
stack memory to be treated as free memory and any memory allocation which
happens at this address causes random memory corruption. Fix this by
creating the stack HOB which marks the memory as BS data.

Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Andrei Warkentin <andrei.warkentin@intel.com>
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jordan Justen <jordan.l.justen@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: default avatarSunil V L <sunilvl@ventanamicro.com>
Reported-by: default avatarAndrei Warkentin <andrei.warkentin@intel.com>
Tested-by: default avatarAndrei Warkentin <andrei.warkentin@intel.com>
Reviewed-by: default avatarAndrei Warkentin <andrei.warkentin@intel.com>
parent 1eeca075
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment