forked from Minki/linux
59c4da8640
In a similar manner to arm64, x86, powerpc, etc., it can traverse all page tables, and dump the page table layout with the memory types and permissions. Add a debugfs file at /sys/kernel/debug/kernel_page_tables to export the page table layout to userspace. Signed-off-by: Zong Li <zong.li@sifive.com> Tested-by: Alexandre Ghiti <alex@ghiti.fr> Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
27 lines
555 B
Makefile
27 lines
555 B
Makefile
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
CFLAGS_init.o := -mcmodel=medany
|
|
ifdef CONFIG_FTRACE
|
|
CFLAGS_REMOVE_init.o = -pg
|
|
endif
|
|
|
|
obj-y += init.o
|
|
obj-y += extable.o
|
|
obj-$(CONFIG_MMU) += fault.o pageattr.o
|
|
obj-y += cacheflush.o
|
|
obj-y += context.o
|
|
|
|
ifeq ($(CONFIG_MMU),y)
|
|
obj-$(CONFIG_SMP) += tlbflush.o
|
|
endif
|
|
obj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o
|
|
obj-$(CONFIG_PTDUMP_CORE) += ptdump.o
|
|
obj-$(CONFIG_KASAN) += kasan_init.o
|
|
|
|
ifdef CONFIG_KASAN
|
|
KASAN_SANITIZE_kasan_init.o := n
|
|
KASAN_SANITIZE_init.o := n
|
|
endif
|
|
|
|
obj-$(CONFIG_DEBUG_VIRTUAL) += physaddr.o
|