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:
Heyi Guo 2015-05-13 18:21:58 +00:00 committed by oliviermartin
parent b51cffe12f
commit c37e542ba0
1 changed files with 1 additions and 1 deletions

View File

@ -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