powerpc/mm: Fix missing page attributes in page table dump
On some targets, _PAGE_RW is 0 and this is _PAGE_RO which is used. There is also _PAGE_SHARED that is missing. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:

committed by
Michael Ellerman

parent
6c01bbd2cf
commit
fd893fe56a
@@ -121,8 +121,13 @@ static const struct flag_info flag_array[] = {
|
||||
.set = "user",
|
||||
.clear = " ",
|
||||
}, {
|
||||
#if _PAGE_RO == 0
|
||||
.mask = _PAGE_RW,
|
||||
.val = _PAGE_RW,
|
||||
#else
|
||||
.mask = _PAGE_RO,
|
||||
.val = 0,
|
||||
#endif
|
||||
.set = "rw",
|
||||
.clear = "ro",
|
||||
}, {
|
||||
@@ -222,6 +227,10 @@ static const struct flag_info flag_array[] = {
|
||||
.mask = _PAGE_SPECIAL,
|
||||
.val = _PAGE_SPECIAL,
|
||||
.set = "special",
|
||||
}, {
|
||||
.mask = _PAGE_SHARED,
|
||||
.val = _PAGE_SHARED,
|
||||
.set = "shared",
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user