File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,12 @@ struct prot_bits {
135
135
136
136
static const struct prot_bits pte_bits [] = {
137
137
{
138
+ #ifdef CONFIG_64BIT
139
+ .mask = _PAGE_MTMASK_SVPBMT ,
140
+ .set = "MT(%s)" ,
141
+ .clear = " .. " ,
142
+ }, {
143
+ #endif
138
144
.mask = _PAGE_SOFT ,
139
145
.set = "RSW(%d)" ,
140
146
.clear = " .. " ,
@@ -205,6 +211,16 @@ static void dump_prot(struct pg_state *st)
205
211
if (val ) {
206
212
if (pte_bits [i ].mask == _PAGE_SOFT )
207
213
sprintf (s , pte_bits [i ].set , val >> 8 );
214
+ #ifdef CONFIG_64BIT
215
+ else if (pte_bits [i ].mask == _PAGE_MTMASK_SVPBMT ) {
216
+ if (val == _PAGE_NOCACHE_SVPBMT )
217
+ sprintf (s , pte_bits [i ].set , "NC" );
218
+ else if (val == _PAGE_IO_SVPBMT )
219
+ sprintf (s , pte_bits [i ].set , "IO" );
220
+ else
221
+ sprintf (s , pte_bits [i ].set , "??" );
222
+ }
223
+ #endif
208
224
else
209
225
sprintf (s , "%s" , pte_bits [i ].set );
210
226
} else {
You can’t perform that action at this time.
0 commit comments