pte.h (280364) | pte.h (285314) |
---|---|
1/*- 2 * Copyright (c) 2014 Andrew Turner 3 * Copyright (c) 2014-2015 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * This software was developed by Andrew Turner under 7 * sponsorship from the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * | 1/*- 2 * Copyright (c) 2014 Andrew Turner 3 * Copyright (c) 2014-2015 The FreeBSD Foundation 4 * All rights reserved. 5 * 6 * This software was developed by Andrew Turner under 7 * sponsorship from the FreeBSD Foundation. 8 * --- 13 unchanged lines hidden (view full) --- 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * SUCH DAMAGE. 29 * |
30 * $FreeBSD: head/sys/arm64/include/pte.h 280364 2015-03-23 11:54:56Z andrew $ | 30 * $FreeBSD: head/sys/arm64/include/pte.h 285314 2015-07-09 12:56:09Z andrew $ |
31 */ 32 33#ifndef _MACHINE_PTE_H_ 34#define _MACHINE_PTE_H_ 35 36#ifndef LOCORE 37typedef uint64_t pd_entry_t; /* page directory entry */ 38typedef uint64_t pt_entry_t; /* page table entry */ --- 5 unchanged lines hidden (view full) --- 44#define ATTR_MASK_L UINT64_C(0x0000000000000fff) 45#define ATTR_MASK (ATTR_MASK_H | ATTR_MASK_L) 46/* Bits 58:55 are reserved for software */ 47#define ATTR_SW_MANAGED (1UL << 56) 48#define ATTR_SW_WIRED (1UL << 55) 49#define ATTR_nG (1 << 11) 50#define ATTR_AF (1 << 10) 51#define ATTR_SH(x) ((x) << 8) | 31 */ 32 33#ifndef _MACHINE_PTE_H_ 34#define _MACHINE_PTE_H_ 35 36#ifndef LOCORE 37typedef uint64_t pd_entry_t; /* page directory entry */ 38typedef uint64_t pt_entry_t; /* page table entry */ --- 5 unchanged lines hidden (view full) --- 44#define ATTR_MASK_L UINT64_C(0x0000000000000fff) 45#define ATTR_MASK (ATTR_MASK_H | ATTR_MASK_L) 46/* Bits 58:55 are reserved for software */ 47#define ATTR_SW_MANAGED (1UL << 56) 48#define ATTR_SW_WIRED (1UL << 55) 49#define ATTR_nG (1 << 11) 50#define ATTR_AF (1 << 10) 51#define ATTR_SH(x) ((x) << 8) |
52#define ATTR_SH_MASK ATTR_SH(3) 53#define ATTR_SH_NS 0 /* Non-shareable */ 54#define ATTR_SH_OS 2 /* Outer-shareable */ 55#define ATTR_SH_IS 3 /* Inner-shareable */ |
|
52#define ATTR_AP_RW_BIT (1 << 7) 53#define ATTR_AP(x) ((x) << 6) 54#define ATTR_AP_MASK ATTR_AP(3) 55#define ATTR_AP_RW (0 << 1) 56#define ATTR_AP_RO (1 << 1) 57#define ATTR_AP_USER (1 << 0) 58#define ATTR_NS (1 << 5) 59#define ATTR_IDX(x) ((x) << 2) --- 46 unchanged lines hidden --- | 56#define ATTR_AP_RW_BIT (1 << 7) 57#define ATTR_AP(x) ((x) << 6) 58#define ATTR_AP_MASK ATTR_AP(3) 59#define ATTR_AP_RW (0 << 1) 60#define ATTR_AP_RO (1 << 1) 61#define ATTR_AP_USER (1 << 0) 62#define ATTR_NS (1 << 5) 63#define ATTR_IDX(x) ((x) << 2) --- 46 unchanged lines hidden --- |