diff options
author | andrew <andrew@FreeBSD.org> | 2016-03-18 10:01:25 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2016-03-18 10:01:25 +0000 |
commit | df8c050ab1d3eb81d8114fedbd9e3372c58bfce6 (patch) | |
tree | 225eee7abf8798172370dbc88826e5de41c9f591 /sys/arm64 | |
parent | 95d1cabc954099587e5ef7bcd0108dff7a626e9f (diff) | |
download | FreeBSD-src-df8c050ab1d3eb81d8114fedbd9e3372c58bfce6.zip FreeBSD-src-df8c050ab1d3eb81d8114fedbd9e3372c58bfce6.tar.gz |
Remove the invalid L0_BLOCK definition. ARMv8 doesn't support block
translation in the level 0 descriptor.
Obtained from: ABT Systems Ltd
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/include/pte.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arm64/include/pte.h b/sys/arm64/include/pte.h index 645cf31..2f46871 100644 --- a/sys/arm64/include/pte.h +++ b/sys/arm64/include/pte.h @@ -74,7 +74,7 @@ typedef uint64_t pt_entry_t; /* page table entry */ /* Level 0 table, 512GiB per entry */ #define L0_SHIFT 39 #define L0_INVAL 0x0 /* An invalid address */ -#define L0_BLOCK 0x1 /* A block */ + /* 0x1 Level 0 doesn't support block translation */ /* 0x2 also marks an invalid address */ #define L0_TABLE 0x3 /* A next-level table */ @@ -83,16 +83,16 @@ typedef uint64_t pt_entry_t; /* page table entry */ #define L1_SIZE (1 << L1_SHIFT) #define L1_OFFSET (L1_SIZE - 1) #define L1_INVAL L0_INVAL -#define L1_BLOCK L0_BLOCK +#define L1_BLOCK 0x1 #define L1_TABLE L0_TABLE /* Level 2 table, 2MiB per entry */ #define L2_SHIFT 21 #define L2_SIZE (1 << L2_SHIFT) #define L2_OFFSET (L2_SIZE - 1) -#define L2_INVAL L0_INVAL -#define L2_BLOCK L0_BLOCK -#define L2_TABLE L0_TABLE +#define L2_INVAL L1_INVAL +#define L2_BLOCK L1_BLOCK +#define L2_TABLE L1_TABLE #define L2_BLOCK_MASK UINT64_C(0xffffffe00000) |