mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 16:44:10 +02:00
ArmPkg: Add helper to read the Memory Model Features Register 2
Add helper function to read the MMFR2 register. We will need this to determine CCIDX support. Signed-off-by: Rebecca Cran <rebecca@nuviainc.com> Reviewed-by: Leif Lindholm <leif@nuviainc.com> Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
This commit is contained in:
parent
92bdb2a9c6
commit
b69566afae
@ -41,5 +41,16 @@ EFIAPI
|
|||||||
ArmReadIdAA64Pfr0 (
|
ArmReadIdAA64Pfr0 (
|
||||||
VOID
|
VOID
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/** Reads the ID_AA64MMFR2_EL1 register.
|
||||||
|
|
||||||
|
@return The contents of the ID_AA64MMFR2_EL1 register.
|
||||||
|
**/
|
||||||
|
UINTN
|
||||||
|
EFIAPI
|
||||||
|
ArmReadIdAA64Mmfr2 (
|
||||||
|
VOID
|
||||||
|
);
|
||||||
|
|
||||||
#endif // __AARCH64_LIB_H__
|
#endif // __AARCH64_LIB_H__
|
||||||
|
|
||||||
|
@ -425,6 +425,9 @@ ASM_FUNC(ArmCallWFI)
|
|||||||
wfi
|
wfi
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
ASM_FUNC(ArmReadIdAA64Mmfr2)
|
||||||
|
mrs x0, ID_AA64MMFR2_EL1 // read EL1 MMFR2
|
||||||
|
ret
|
||||||
|
|
||||||
ASM_FUNC(ArmReadMpidr)
|
ASM_FUNC(ArmReadMpidr)
|
||||||
mrs x0, mpidr_el1 // read EL1 MPIDR
|
mrs x0, mpidr_el1 // read EL1 MPIDR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user