TianoCore EDK2 master
Loading...
Searching...
No Matches
ArmV7Lib.c
Go to the documentation of this file.
1
11#include <Base.h>
12
13#include <Library/ArmLib.h>
14#include <Library/DebugLib.h>
15
16#include <Arm/AArch32.h>
17
18#include "ArmV7Lib.h"
19#include "ArmLibPrivate.h"
20
27BOOLEAN
28EFIAPI
30 VOID
31 )
32{
33 return ((ArmReadIdPfr1 () & ARM_PFR1_GIC) != 0);
34}
35
42BOOLEAN
43EFIAPI
45 VOID
46 )
47{
48 return ((ArmReadIdPfr1 () & ARM_PFR1_SEC) != 0);
49}
50
56BOOLEAN
57EFIAPI
59 VOID
60 )
61{
62 UINTN Mmfr4;
63
64 Mmfr4 = ArmReadIdMmfr4 ();
65 return (((Mmfr4 >> 24) & 0xF) == 1) ? TRUE : FALSE;
66}
UINT64 UINTN
BOOLEAN EFIAPI ArmHasGicSystemRegisters(VOID)
Definition: ArmV7Lib.c:29
BOOLEAN EFIAPI ArmHasCcidx(VOID)
Definition: ArmV7Lib.c:58
BOOLEAN EFIAPI ArmHasSecurityExtensions(VOID)
Definition: ArmV7Lib.c:44
UINT32 EFIAPI ArmReadIdMmfr4(VOID)
#define TRUE
Definition: Base.h:301
#define FALSE
Definition: Base.h:307