@@ -126,14 +126,18 @@ enum napot_cont_order {
126
126
127
127
/*
128
128
* [63:59] T-Head Memory Type definitions:
129
- *
130
- * 00000 - NC Weakly-ordered, Non-cacheable, Non-bufferable, Non-shareable, Non-trustable
129
+ * bit[63] SO - Strong Order
130
+ * bit[62] C - Cacheable
131
+ * bit[61] B - Bufferable
132
+ * bit[60] SH - Shareable
133
+ * bit[59] Sec - Trustable
134
+ * 00110 - NC Weakly-ordered, Non-cacheable, Bufferable, Shareable, Non-trustable
131
135
* 01110 - PMA Weakly-ordered, Cacheable, Bufferable, Shareable, Non-trustable
132
- * 10000 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Non-shareable , Non-trustable
136
+ * 10010 - IO Strongly-ordered, Non-cacheable, Non-bufferable, Shareable , Non-trustable
133
137
*/
134
138
#define _PAGE_PMA_THEAD ((1UL << 62) | (1UL << 61) | (1UL << 60))
135
- #define _PAGE_NOCACHE_THEAD 0UL
136
- #define _PAGE_IO_THEAD (1UL << 63)
139
+ #define _PAGE_NOCACHE_THEAD ((1UL < 61) | (1UL << 60))
140
+ #define _PAGE_IO_THEAD (( 1UL << 63) | (1UL << 60) )
137
141
#define _PAGE_MTMASK_THEAD (_PAGE_PMA_THEAD | _PAGE_IO_THEAD | (1UL << 59))
138
142
139
143
static inline u64 riscv_page_mtmask (void )
0 commit comments