]> git.proxmox.com Git - mirror_edk2.git/commit - ArmPkg/Include/Library/ArmLib.h
ArmPkg: add ArmHasSecurityExtensions () helper function
authorLeif Lindholm <leif@nuviainc.com>
Fri, 18 Dec 2020 13:21:08 +0000 (13:21 +0000)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Fri, 18 Dec 2020 15:27:26 +0000 (15:27 +0000)
commit740b870dc8660906523c85187ab5badd2fd8ea08
tree5c70ccf63b6ee66f59adf8e614759f76afac7c9b
parent7bb8dd9f9844802eb6ae2c8fcd8c2ff613570583
ArmPkg: add ArmHasSecurityExtensions () helper function

Create a helper function to eliminate direct feature register reading.

Returns BOOLEAN True if the CPU implements the Security extensions,
otherwise returns BOOL False.

This function is only implemented for ARM, not AArch64.

Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
Signed-off-by: Leif Lindholm <leif@nuviainc.com>
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
ArmPkg/Include/Library/ArmLib.h
ArmPkg/Library/ArmLib/Arm/ArmV7Lib.c