mirror of https://github.com/acidanthera/audk.git
ArmPkg/ArmLib: Define the macro IS_ARM_MEMORY_REGION_ATTRIBUTES_SECURE()
This macro returns TRUE is the ARM memory region is a Secure region. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11472 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
6acb379fbc
commit
1e6a5cfcec
|
@ -40,16 +40,18 @@ typedef struct {
|
||||||
} ARM_CACHE_INFO;
|
} ARM_CACHE_INFO;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_UNCACHED_UNBUFFERED,
|
ARM_MEMORY_REGION_ATTRIBUTE_UNCACHED_UNBUFFERED = 0,
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK,
|
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_THROUGH,
|
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_DEVICE,
|
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_UNCACHED_UNBUFFERED,
|
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_UNCACHED_UNBUFFERED,
|
||||||
|
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_BACK,
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_WRITE_BACK,
|
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_WRITE_BACK,
|
||||||
|
ARM_MEMORY_REGION_ATTRIBUTE_WRITE_THROUGH,
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_WRITE_THROUGH,
|
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_WRITE_THROUGH,
|
||||||
|
ARM_MEMORY_REGION_ATTRIBUTE_DEVICE,
|
||||||
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_DEVICE
|
ARM_MEMORY_REGION_ATTRIBUTE_SECURE_DEVICE
|
||||||
} ARM_MEMORY_REGION_ATTRIBUTES;
|
} ARM_MEMORY_REGION_ATTRIBUTES;
|
||||||
|
|
||||||
|
#define IS_ARM_MEMORY_REGION_ATTRIBUTES_SECURE(attr) ((UINT32)(attr) & 1)
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
UINT32 PhysicalBase;
|
UINT32 PhysicalBase;
|
||||||
UINT32 VirtualBase;
|
UINT32 VirtualBase;
|
||||||
|
|
Loading…
Reference in New Issue