From c37e542ba01bfe3cb3932cfdced86d4517e21950 Mon Sep 17 00:00:00 2001 From: Heyi Guo Date: Wed, 13 May 2015 18:21:58 +0000 Subject: 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 git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17440 6f19259b-4bc3-4df7-8a09-765794883524 --- ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ArmPkg') diff --git a/ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S b/ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S index 1ac01086aa..3944d8bcb4 100644 --- a/ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S +++ b/ArmPkg/Library/ArmLib/AArch64/AArch64ArchTimerSupport.S @@ -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 -- cgit v1.2.3