summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2021-07-19 18:16:14 -0700
committerAndrew Waterman <andrew@sifive.com>2021-07-19 18:16:14 -0700
commit0666378f353599d01fc48562b431b1dd049faab5 (patch)
tree0ff080f1548197cd8d2f76944ed1f475a612bf38
parenteb1fba5d790eca34fc3f556cb3eca22b8f5b7f30 (diff)
downloadenv-0666378f353599d01fc48562b431b1dd049faab5.zip
env-0666378f353599d01fc48562b431b1dd049faab5.tar.gz
env-0666378f353599d01fc48562b431b1dd049faab5.tar.bz2
Update encoding.h to add new PTE_ macros
-rw-r--r--encoding.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/encoding.h b/encoding.h
index 584bc27..2aa895b 100644
--- a/encoding.h
+++ b/encoding.h
@@ -176,6 +176,10 @@
#define PTE_A 0x040 /* Accessed */
#define PTE_D 0x080 /* Dirty */
#define PTE_SOFT 0x300 /* Reserved for Software */
+#define PTE_RSVD 0x1FC0000000000000 /* Reserved for future standard use */
+#define PTE_PBMT 0x6000000000000000 /* Svpbmt: Page-based memory types */
+#define PTE_N 0x8000000000000000 /* Svnapot: NAPOT translation contiguity */
+#define PTE_ATTR 0xFFC0000000000000 /* All attributes and reserved bits */
#define PTE_PPN_SHIFT 10