1 // SPDX-License-Identifier: GPL-2.0
3 * From split of dump_linuxpagetables.c
4 * Copyright 2016, Rashmica Gupta, IBM Corp.
7 #include <linux/kernel.h>
8 #include <linux/pgtable.h>
12 static const struct flag_info flag_array
[] = {
29 .mask
= _PAGE_PRESENT
,
34 .mask
= _PAGE_COHERENT
,
35 .val
= _PAGE_COHERENT
,
39 .mask
= _PAGE_GUARDED
,
49 .mask
= _PAGE_ACCESSED
,
50 .val
= _PAGE_ACCESSED
,
54 .mask
= _PAGE_WRITETHRU
,
55 .val
= _PAGE_WRITETHRU
,
56 .set
= "write through",
59 .mask
= _PAGE_NO_CACHE
,
60 .val
= _PAGE_NO_CACHE
,
64 .mask
= _PAGE_SPECIAL
,
70 struct pgtable_level pg_level
[5] = {
74 .num
= ARRAY_SIZE(flag_array
),
77 .num
= ARRAY_SIZE(flag_array
),
80 .num
= ARRAY_SIZE(flag_array
),
83 .num
= ARRAY_SIZE(flag_array
),