diff options
author | Michael Zimmermann <sigmaepsilon92@gmail.com> | 2018-01-13 07:52:45 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-01-15 12:02:25 +0000 |
commit | 1e1d16971d1ae620d15b685fd76959c94d304319 (patch) | |
tree | 8f2cbc006a75facc10fb04d7781111231b5e9b5b /ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S | |
parent | 29af38b0f8f2aa7b08f61a9df38a59dbc15e9302 (diff) | |
download | edk2-1e1d16971d1ae620d15b685fd76959c94d304319.zip edk2-1e1d16971d1ae620d15b685fd76959c94d304319.tar.gz edk2-1e1d16971d1ae620d15b685fd76959c94d304319.tar.bz2 |
ArmPkg/Library/ArmLib: add ArmWriteSctlr
This currently isn't needed by anything in the edk2 tree but
it's useful for externally maintained platforms which have
to set this register e.g. to disable alignment aborts.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S')
-rw-r--r-- | ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S b/ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S index a0b5ed5..149b57e 100644 --- a/ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S +++ b/ArmPkg/Library/ArmLib/Arm/ArmLibSupport.S @@ -153,6 +153,10 @@ ASM_FUNC(ArmReadSctlr) mrc p15, 0, r0, c1, c0, 0 @ Read SCTLR into R0 (Read control register configuration data)
bx lr
+ASM_FUNC(ArmWriteSctlr)
+ mcr p15, 0, r0, c1, c0, 0
+ bx lr
+
ASM_FUNC(ArmReadCpuActlr)
mrc p15, 0, r0, c1, c0, 1
bx lr
|