162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the linux arm-specific parts of the memory manager.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ciobj-y				:= extable.o fault.o init.o iomap.o
762306a36Sopenharmony_ciobj-y				+= dma-mapping$(MMUEXT).o
862306a36Sopenharmony_ciobj-$(CONFIG_MMU)		+= fault-armv.o flush.o idmap.o ioremap.o \
962306a36Sopenharmony_ci				   mmap.o pgd.o mmu.o pageattr.o
1062306a36Sopenharmony_ciKASAN_SANITIZE_mmu.o		:= n
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ciifneq ($(CONFIG_MMU),y)
1362306a36Sopenharmony_ciobj-y				+= nommu.o
1462306a36Sopenharmony_ciobj-$(CONFIG_ARM_MPU)		+= pmsa-v7.o pmsa-v8.o
1562306a36Sopenharmony_ciendif
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ciobj-$(CONFIG_ARM_PTDUMP_CORE)	+= dump.o
1862306a36Sopenharmony_ciobj-$(CONFIG_ARM_PTDUMP_DEBUGFS)	+= ptdump_debugfs.o
1962306a36Sopenharmony_ciobj-$(CONFIG_MODULES)		+= proc-syms.o
2062306a36Sopenharmony_ciKASAN_SANITIZE_physaddr.o	:= n
2162306a36Sopenharmony_ciobj-$(CONFIG_DEBUG_VIRTUAL)	+= physaddr.o
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ciobj-$(CONFIG_ALIGNMENT_TRAP)	+= alignment.o
2462306a36Sopenharmony_ciobj-$(CONFIG_HUGETLB_PAGE)	+= hugetlbpage.o
2562306a36Sopenharmony_ciobj-$(CONFIG_ARM_PV_FIXUP)	+= pv-fixup-asm.o
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_NOMMU)	+= abort-nommu.o
2862306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV4)	+= abort-ev4.o
2962306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV4T)	+= abort-ev4t.o
3062306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_LV4T)	+= abort-lv4t.o
3162306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV5T)	+= abort-ev5t.o
3262306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV5TJ)	+= abort-ev5tj.o
3362306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV6)	+= abort-ev6.o
3462306a36Sopenharmony_ciobj-$(CONFIG_CPU_ABRT_EV7)	+= abort-ev7.o
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ciobj-$(CONFIG_CPU_PABRT_LEGACY)	+= pabort-legacy.o
3762306a36Sopenharmony_ciobj-$(CONFIG_CPU_PABRT_V6)	+= pabort-v6.o
3862306a36Sopenharmony_ciobj-$(CONFIG_CPU_PABRT_V7)	+= pabort-v7.o
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V4)	+= cache-v4.o
4162306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V4WT)	+= cache-v4wt.o
4262306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V4WB)	+= cache-v4wb.o
4362306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V6)	+= cache-v6.o
4462306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V7)	+= cache-v7.o
4562306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_FA)	+= cache-fa.o
4662306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_NOP)	+= cache-nop.o
4762306a36Sopenharmony_ciobj-$(CONFIG_CPU_CACHE_V7M)	+= cache-v7m.o
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ciobj-$(CONFIG_CPU_COPY_V4WT)	+= copypage-v4wt.o
5062306a36Sopenharmony_ciobj-$(CONFIG_CPU_COPY_V4WB)	+= copypage-v4wb.o
5162306a36Sopenharmony_ciobj-$(CONFIG_CPU_COPY_FEROCEON)	+= copypage-feroceon.o
5262306a36Sopenharmony_ciobj-$(CONFIG_CPU_COPY_V6)	+= copypage-v6.o context.o
5362306a36Sopenharmony_ciobj-$(CONFIG_CPU_SA1100)	+= copypage-v4mc.o
5462306a36Sopenharmony_ciobj-$(CONFIG_CPU_XSCALE)	+= copypage-xscale.o
5562306a36Sopenharmony_ciobj-$(CONFIG_CPU_XSC3)		+= copypage-xsc3.o
5662306a36Sopenharmony_ciobj-$(CONFIG_CPU_COPY_FA)	+= copypage-fa.o
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_V4WT)	+= tlb-v4.o
5962306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_V4WB)	+= tlb-v4wb.o
6062306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_V4WBI)	+= tlb-v4wbi.o
6162306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_FEROCEON)	+= tlb-v4wbi.o	# reuse v4wbi TLB functions
6262306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_V6)	+= tlb-v6.o
6362306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_V7)	+= tlb-v7.o
6462306a36Sopenharmony_ciobj-$(CONFIG_CPU_TLB_FA)	+= tlb-fa.o
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM7TDMI)	+= proc-arm7tdmi.o
6762306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM720T)	+= proc-arm720.o
6862306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM740T)	+= proc-arm740.o
6962306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM9TDMI)	+= proc-arm9tdmi.o
7062306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM920T)	+= proc-arm920.o
7162306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM922T)	+= proc-arm922.o
7262306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM925T)	+= proc-arm925.o
7362306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM926T)	+= proc-arm926.o
7462306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM940T)	+= proc-arm940.o
7562306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM946E)	+= proc-arm946.o
7662306a36Sopenharmony_ciobj-$(CONFIG_CPU_FA526)		+= proc-fa526.o
7762306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM1020)	+= proc-arm1020.o
7862306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM1020E)	+= proc-arm1020e.o
7962306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM1022)	+= proc-arm1022.o
8062306a36Sopenharmony_ciobj-$(CONFIG_CPU_ARM1026)	+= proc-arm1026.o
8162306a36Sopenharmony_ciobj-$(CONFIG_CPU_SA110)		+= proc-sa110.o
8262306a36Sopenharmony_ciobj-$(CONFIG_CPU_SA1100)	+= proc-sa1100.o
8362306a36Sopenharmony_ciobj-$(CONFIG_CPU_XSCALE)	+= proc-xscale.o
8462306a36Sopenharmony_ciobj-$(CONFIG_CPU_XSC3)		+= proc-xsc3.o
8562306a36Sopenharmony_ciobj-$(CONFIG_CPU_MOHAWK)	+= proc-mohawk.o
8662306a36Sopenharmony_ciobj-$(CONFIG_CPU_FEROCEON)	+= proc-feroceon.o
8762306a36Sopenharmony_ciobj-$(CONFIG_CPU_V6)		+= proc-v6.o
8862306a36Sopenharmony_ciobj-$(CONFIG_CPU_V6K)		+= proc-v6.o
8962306a36Sopenharmony_ciobj-$(CONFIG_CPU_V7)		+= proc-v7.o proc-v7-bugs.o
9062306a36Sopenharmony_ciobj-$(CONFIG_CPU_V7M)		+= proc-v7m.o
9162306a36Sopenharmony_ci
9262306a36Sopenharmony_ciobj-$(CONFIG_OUTER_CACHE)	+= l2c-common.o
9362306a36Sopenharmony_ciobj-$(CONFIG_CACHE_B15_RAC)	+= cache-b15-rac.o
9462306a36Sopenharmony_ciobj-$(CONFIG_CACHE_FEROCEON_L2)	+= cache-feroceon-l2.o
9562306a36Sopenharmony_ciobj-$(CONFIG_CACHE_L2X0)	+= cache-l2x0.o l2c-l2x0-resume.o
9662306a36Sopenharmony_ciobj-$(CONFIG_CACHE_L2X0_PMU)	+= cache-l2x0-pmu.o
9762306a36Sopenharmony_ciobj-$(CONFIG_CACHE_XSC3L2)	+= cache-xsc3l2.o
9862306a36Sopenharmony_ciobj-$(CONFIG_CACHE_TAUROS2)	+= cache-tauros2.o
9962306a36Sopenharmony_ciobj-$(CONFIG_CACHE_UNIPHIER)	+= cache-uniphier.o
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ciKASAN_SANITIZE_kasan_init.o	:= n
10262306a36Sopenharmony_ciobj-$(CONFIG_KASAN)		+= kasan_init.o
103