mirror of https://github.com/acidanthera/audk.git
ArmPkg: fix ArmWriteCntkCtl simple code bug
We need to use msr instruction to write system register. It seems the code was simply copied from ArmReadCntkCtl. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Heyi Guo <heyi.guo@linaro.org> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17440 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
b51cffe12f
commit
c37e542ba0
|
@ -58,7 +58,7 @@ ASM_PFX(ArmReadCntkCtl):
|
|||
|
||||
|
||||
ASM_PFX(ArmWriteCntkCtl):
|
||||
mrs x0, cntkctl_el1 // Write to CNTK_CTL (Timer PL1 Control Register)
|
||||
msr cntkctl_el1, x0 // Write to CNTK_CTL (Timer PL1 Control Register)
|
||||
ret
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue