summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm/ptdump/8xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/mm/ptdump/8xx.c')
-rw-r--r--arch/powerpc/mm/ptdump/8xx.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/arch/powerpc/mm/ptdump/8xx.c b/arch/powerpc/mm/ptdump/8xx.c
index 9e2d8e847d6e..b5c79b11ea3c 100644
--- a/arch/powerpc/mm/ptdump/8xx.c
+++ b/arch/powerpc/mm/ptdump/8xx.c
@@ -5,15 +5,20 @@
*
*/
#include <linux/kernel.h>
-#include <asm/pgtable.h>
+#include <linux/pgtable.h>
#include "ptdump.h"
static const struct flag_info flag_array[] = {
{
- .mask = _PAGE_SH,
- .val = 0,
- .set = "user",
+#ifdef CONFIG_PPC_16K_PAGES
+ .mask = _PAGE_HUGE,
+ .val = _PAGE_HUGE,
+#else
+ .mask = _PAGE_SPS,
+ .val = _PAGE_SPS,
+#endif
+ .set = "huge",
.clear = " ",
}, {
.mask = _PAGE_RO | _PAGE_NA,
@@ -65,8 +70,10 @@ static const struct flag_info flag_array[] = {
};
struct pgtable_level pg_level[5] = {
- {
- }, { /* pgd */
+ { /* pgd */
+ .flag = flag_array,
+ .num = ARRAY_SIZE(flag_array),
+ }, { /* p4d */
.flag = flag_array,
.num = ARRAY_SIZE(flag_array),
}, { /* pud */