diff options
author | andrew <andrew@FreeBSD.org> | 2015-07-09 12:56:09 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-07-09 12:56:09 +0000 |
commit | 802b17ef784664c58aebbae46c13092956cd908c (patch) | |
tree | d1174be7becc9c3778d3496bed82efa710807941 | |
parent | 1bff17935d543b87a05b9ffbaa939a370aefa02c (diff) | |
download | FreeBSD-src-802b17ef784664c58aebbae46c13092956cd908c.zip FreeBSD-src-802b17ef784664c58aebbae46c13092956cd908c.tar.gz |
Add the definition of the shareable bits in the pagetables
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/arm64/include/pte.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h index c447dc1..2b694a6 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -49,6 +49,10 @@ typedef uint64_t pt_entry_t; /* page table entry */ #define ATTR_nG (1 << 11) #define ATTR_AF (1 << 10) #define ATTR_SH(x) ((x) << 8) +#define ATTR_SH_MASK ATTR_SH(3) +#define ATTR_SH_NS 0 /* Non-shareable */ +#define ATTR_SH_OS 2 /* Outer-shareable */ +#define ATTR_SH_IS 3 /* Inner-shareable */ #define ATTR_AP_RW_BIT (1 << 7) #define ATTR_AP(x) ((x) << 6) #define ATTR_AP_MASK ATTR_AP(3) |