<feed xmlns='http://www.w3.org/2005/Atom'>
<title>Tianocore/edk2.git/MdePkg/Library/BaseLib/RiscV64/InternalSwitchStack.c, branch master</title>
<subtitle>EDK II (mirror)</subtitle>
<id>https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master</id>
<link rel='self' href='https://git.radix-linux.su/Tianocore/edk2.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/'/>
<updated>2024-01-11T15:19:26+00:00</updated>
<entry>
<title>MdePkg/BaseLib: Fix boot DxeCore hang on riscv platform</title>
<updated>2024-01-11T15:19:26+00:00</updated>
<author>
<name>王洋</name>
<email>wangyang@bosc.ac.cn</email>
</author>
<published>2023-12-28T02:56:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=0765ee6cd36aef02236ae431a7097624d17762d9'/>
<id>urn:sha1:0765ee6cd36aef02236ae431a7097624d17762d9</id>
<content type='text'>
For scene of
HandOffToDxeCore()-&gt;SwitchStack(DxeCoreEntryPoint)-&gt;
InternalSwitchStack()-&gt;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 &lt;wangyang@bosc.ac.cn&gt;
Cc: Bamvor Jian ZHANG &lt;zhangjian@bosc.ac.cn&gt;
Cc: Andrei Warkentin &lt;andrei.warkentin@intel.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Sunil V L &lt;sunilvl@ventanamicro.com&gt;
Cc: Zhiguang Liu &lt;zhiguang.liu@intel.com&gt;
Reviewed-by: Ran Wang &lt;wangran@bosc.ac.cn&gt;
Reviewed-by: Andrei Warkentin &lt;andrei.warkentin@intel.com&gt;
</content>
</entry>
<entry>
<title>MdePkg: BaseLib: don't log in RISCV InternalSwitchStack</title>
<updated>2023-03-08T18:10:34+00:00</updated>
<author>
<name>Andrei Warkentin</name>
<email>andrei.warkentin@intel.com</email>
</author>
<published>2023-02-18T00:43:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=5bd2e5dfe6f8efa2cbbf643e4e7e46867a8a26b0'/>
<id>urn:sha1:5bd2e5dfe6f8efa2cbbf643e4e7e46867a8a26b0</id>
<content type='text'>
InternalSwitchStack may be called with a TPL high
enough for a DebugLib implementation to assert.

Other arch implementations don't log either.

Cc: Daniel Schaefer &lt;git@danielschaefer.me&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
Cc: Zhiguang Liu &lt;zhiguang.liu@intel.com&gt;
Reviewed-by: Sunil V L &lt;sunilvl@ventanamicro.com&gt;
Signed-off-by: Andrei Warkentin &lt;andrei.warkentin@intel.com&gt;
</content>
</entry>
<entry>
<title>MdePkg: Apply uncrustify changes</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael Kubacki</name>
<email>michael.kubacki@microsoft.com</email>
</author>
<published>2021-12-05T22:54:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=2f88bd3a1296c522317f1c21377876de63de5be7'/>
<id>urn:sha1:2f88bd3a1296c522317f1c21377876de63de5be7</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3737

Apply uncrustify changes to .c/.h files in the MdePkg package

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Signed-off-by: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
<entry>
<title>MdePkg: Change OPTIONAL keyword usage style</title>
<updated>2021-12-07T17:24:28+00:00</updated>
<author>
<name>Michael D Kinney</name>
<email>michael.d.kinney@intel.com</email>
</author>
<published>2021-12-03T02:00:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=d0e2f8232a26453fc0191629ed44ff2a46ea073e'/>
<id>urn:sha1:d0e2f8232a26453fc0191629ed44ff2a46ea073e</id>
<content type='text'>
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3760

Update all use of ', OPTIONAL' to ' OPTIONAL,' for function params.

Cc: Andrew Fish &lt;afish@apple.com&gt;
Cc: Leif Lindholm &lt;leif@nuviainc.com&gt;
Cc: Michael Kubacki &lt;michael.kubacki@microsoft.com&gt;
Signed-off-by: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Reviewed-by: Liming Gao &lt;gaoliming@byosoft.com.cn&gt;
</content>
</entry>
<entry>
<title>MdePkg/BaseLib: BaseLib for RISCV64 architecture</title>
<updated>2020-05-07T03:17:15+00:00</updated>
<author>
<name>Abner Chang</name>
<email>abner.chang@hpe.com</email>
</author>
<published>2020-04-07T07:53:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/Tianocore/edk2.git/commit/?id=7601b251fd5cfd6cd70d40bc9c88b3b371143654'/>
<id>urn:sha1:7601b251fd5cfd6cd70d40bc9c88b3b371143654</id>
<content type='text'>
Add RISC-V RV64 BaseLib functions.

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

Signed-off-by: Abner Chang &lt;abner.chang@hpe.com&gt;
Co-authored-by: Gilbert Chen &lt;gilbert.chen@hpe.com&gt;
Reviewed-by: Leif Lindholm &lt;leif.lindholm@linaro.org&gt;
Reviewed-by: Zhiguang Liu &lt;zhiguang.liu@intel.com&gt;

Cc: Michael D Kinney &lt;michael.d.kinney@intel.com&gt;
Cc: Liming Gao &lt;liming.gao@intel.com&gt;
Cc: Leif Lindholm &lt;leif.lindholm@linaro.org&gt;
Cc: Gilbert Chen &lt;gilbert.chen@hpe.com&gt;
</content>
</entry>
</feed>
