mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-23 13:44:33 +02:00
MdePkg/BaseLib: Fix an instruction write width error in LoongArch64
Cpucfg fetch is a 32-bit register, and AsmCpucfg's function declaration is a 32-bit address storage operation in BaseLib.h, So, fix it by replacing stptr.d with stptr.w instrcution. BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4797 Cc: Chao Li <lichao@loongson.cn> Signed-off-by: Dongyan Qian <qiandongyan@loongson.cn> Co-authored-by: Chao Li <lichao@loongson.cn>
This commit is contained in:
parent
5db0091418
commit
2fbaaa96d1
@ -20,7 +20,7 @@ ASM_GLOBAL ASM_PFX(AsmCpucfg)
|
|||||||
|
|
||||||
ASM_PFX(AsmCpucfg):
|
ASM_PFX(AsmCpucfg):
|
||||||
cpucfg $t0, $a0
|
cpucfg $t0, $a0
|
||||||
stptr.d $t0, $a1, 0
|
stptr.w $t0, $a1, 0
|
||||||
|
|
||||||
jirl $zero, $ra, 0
|
jirl $zero, $ra, 0
|
||||||
.end
|
.end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user