1# SPDX-License-Identifier: GPL-2.0 2# 3# Makefile for the linux ppc-specific parts of the memory manager. 4# 5 6ccflags-$(CONFIG_PPC64) := $(NO_MINIMAL_TOC) 7 8CFLAGS_REMOVE_slb.o = $(CC_FLAGS_FTRACE) 9 10obj-y := fault.o mem.o pgtable.o mmap.o \ 11 init_$(BITS).o pgtable_$(BITS).o \ 12 init-common.o mmu_context.o drmem.o 13obj-$(CONFIG_PPC_MMU_NOHASH) += mmu_context_nohash.o tlb_nohash.o \ 14 tlb_nohash_low.o 15obj-$(CONFIG_PPC_BOOK3E) += tlb_low_$(BITS)e.o 16hash64-$(CONFIG_PPC_NATIVE) := hash_native_64.o 17obj-$(CONFIG_PPC_BOOK3E_64) += pgtable-book3e.o 18obj-$(CONFIG_PPC_BOOK3S_64) += pgtable-hash64.o hash_utils_64.o slb.o \ 19 $(hash64-y) mmu_context_book3s64.o \ 20 pgtable-book3s64.o pgtable-frag.o 21obj-$(CONFIG_PPC32) += pgtable-frag.o 22obj-$(CONFIG_PPC_RADIX_MMU) += pgtable-radix.o tlb-radix.o 23obj-$(CONFIG_PPC_BOOK3S_32) += ppc_mmu_32.o hash_low_32.o mmu_context_hash32.o 24obj-$(CONFIG_PPC_BOOK3S) += tlb_hash$(BITS).o 25ifdef CONFIG_PPC_BOOK3S_64 26obj-$(CONFIG_PPC_4K_PAGES) += hash64_4k.o 27obj-$(CONFIG_PPC_64K_PAGES) += hash64_64k.o 28endif 29obj-$(CONFIG_40x) += 40x_mmu.o 30obj-$(CONFIG_44x) += 44x_mmu.o 31obj-$(CONFIG_PPC_8xx) += 8xx_mmu.o 32obj-$(CONFIG_PPC_FSL_BOOK3E) += fsl_booke_mmu.o 33obj-$(CONFIG_NEED_MULTIPLE_NODES) += numa.o 34obj-$(CONFIG_PPC_SPLPAR) += vphn.o 35obj-$(CONFIG_PPC_MM_SLICES) += slice.o 36obj-y += hugetlbpage.o 37ifdef CONFIG_HUGETLB_PAGE 38obj-$(CONFIG_PPC_BOOK3S_64) += hugetlbpage-hash64.o 39obj-$(CONFIG_PPC_RADIX_MMU) += hugetlbpage-radix.o 40obj-$(CONFIG_PPC_BOOK3E_MMU) += hugetlbpage-book3e.o 41endif 42obj-$(CONFIG_TRANSPARENT_HUGEPAGE) += hugepage-hash64.o 43obj-$(CONFIG_PPC_SUBPAGE_PROT) += subpage-prot.o 44obj-$(CONFIG_NOT_COHERENT_CACHE) += dma-noncoherent.o 45obj-$(CONFIG_HIGHMEM) += highmem.o 46obj-$(CONFIG_PPC_COPRO_BASE) += copro_fault.o 47obj-$(CONFIG_SPAPR_TCE_IOMMU) += mmu_context_iommu.o 48obj-$(CONFIG_PPC_PTDUMP) += ptdump/ 49obj-$(CONFIG_PPC_MEM_KEYS) += pkeys.o 50 51# Disable kcov instrumentation on sensitive code 52# This is necessary for booting with kcov enabled on book3e machines 53KCOV_INSTRUMENT_tlb_nohash.o := n 54KCOV_INSTRUMENT_fsl_booke_mmu.o := n 55 56# Instrumenting the SLB fault path can lead to duplicate SLB entries 57KCOV_INSTRUMENT_slb.o := n 58