summaryrefslogtreecommitdiffstats
path: root/FatPkg
diff options
context:
space:
mode:
author王洋 <wangyang@bosc.ac.cn>2023-12-28 10:56:32 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2024-01-11 15:19:26 +0000
commit0765ee6cd36aef02236ae431a7097624d17762d9 (patch)
treec749c455ed42182de4cb463f9eee6ce6a92152a3 /FatPkg
parentebf378a1ada6d128dbf32aec76b3911895747bbb (diff)
downloadedk2-0765ee6cd36aef02236ae431a7097624d17762d9.tar.gz
edk2-0765ee6cd36aef02236ae431a7097624d17762d9.tar.bz2
edk2-0765ee6cd36aef02236ae431a7097624d17762d9.zip
MdePkg/BaseLib: Fix boot DxeCore hang on riscv platform
For scene of HandOffToDxeCore()->SwitchStack(DxeCoreEntryPoint)-> InternalSwitchStack()->LongJump(),Variable HobList.Raw will be passed (from *Context1 to register a0) to DxeMain() in parameter *HobStart. However, meanwhile the function LongJump() overrides register a0 with a1 (-1) due to commit (ea628f28e5 "RISCV: Fix InternalLongJump to return correct value"), then cause hang. Replacing calling LongJump() with new InternalSwitchStackAsm() to pass addres data in register s0 to register a0 could fix this issue (just like the solution in MdePkg/Library/BaseLib/AArch64/SwitchStack.S) Signed-off-by: Yang Wang <wangyang@bosc.ac.cn> Cc: Bamvor Jian ZHANG <zhangjian@bosc.ac.cn> Cc: Andrei Warkentin <andrei.warkentin@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Sunil V L <sunilvl@ventanamicro.com> Cc: Zhiguang Liu <zhiguang.liu@intel.com> Reviewed-by: Ran Wang <wangran@bosc.ac.cn> Reviewed-by: Andrei Warkentin <andrei.warkentin@intel.com>
Diffstat (limited to 'FatPkg')
0 files changed, 0 insertions, 0 deletions