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>
This commit is contained in:
committed by
Ard Biesheuvel
parent
29af38b0f8
commit
1e1d16971d
@@ -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
|
||||
|
Reference in New Issue
Block a user