11b3edd97SPaul Mundt# 21b3edd97SPaul Mundt# Makefile for the Linux SuperH-specific parts of the memory manager. 31b3edd97SPaul Mundt# 41b3edd97SPaul Mundt 5a99eae54SPaul Mundtobj-y := alignment.o cache.o init.o consistent.o mmap.o 61b3edd97SPaul Mundt 71b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH2) := cache-sh2.o 81b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH2A) := cache-sh2a.o 91b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH3) := cache-sh3.o 101b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH4) := cache-sh4.o flush-sh4.o 111b3edd97SPaul Mundtcacheops-$(CONFIG_CPU_SH5) := cache-sh5.o flush-sh4.o 121b3edd97SPaul Mundtcacheops-$(CONFIG_SH7705_CACHE_32KB) += cache-sh7705.o 131b3edd97SPaul Mundt 141b3edd97SPaul Mundtobj-y += $(cacheops-y) 151b3edd97SPaul Mundt 161b3edd97SPaul Mundtmmu-y := nommu.o extable_32.o 171b3edd97SPaul Mundtmmu-$(CONFIG_MMU) := extable_$(BITS).o fault_$(BITS).o \ 182a5eaccaSMatt Fleming ioremap_$(BITS).o kmap.o pgtable.o tlbflush_$(BITS).o 191b3edd97SPaul Mundt 201b3edd97SPaul Mundtobj-y += $(mmu-y) 211b3edd97SPaul Mundtobj-$(CONFIG_DEBUG_FS) += asids-debugfs.o 221b3edd97SPaul Mundt 231b3edd97SPaul Mundtifdef CONFIG_DEBUG_FS 241b3edd97SPaul Mundtobj-$(CONFIG_CPU_SH4) += cache-debugfs.o 251b3edd97SPaul Mundtendif 261b3edd97SPaul Mundt 271b3edd97SPaul Mundtifdef CONFIG_MMU 281b3edd97SPaul Mundttlb-$(CONFIG_CPU_SH3) := tlb-sh3.o 291b3edd97SPaul Mundttlb-$(CONFIG_CPU_SH4) := tlb-sh4.o 301b3edd97SPaul Mundttlb-$(CONFIG_CPU_SH5) := tlb-sh5.o 311b3edd97SPaul Mundttlb-$(CONFIG_CPU_HAS_PTEAEX) := tlb-pteaex.o 321b3edd97SPaul Mundtobj-y += $(tlb-y) 331b3edd97SPaul Mundtendif 341b3edd97SPaul Mundt 351b3edd97SPaul Mundtobj-$(CONFIG_HUGETLB_PAGE) += hugetlbpage.o 36a0ab3668SPaul Mundtobj-$(CONFIG_PMB) += pmb.o 371b3edd97SPaul Mundtobj-$(CONFIG_NUMA) += numa.o 384d35b93aSMatt Flemingobj-$(CONFIG_IOREMAP_FIXED) += ioremap_fixed.o 391b3edd97SPaul Mundt 401b3edd97SPaul Mundt# Special flags for fault_64.o. This puts restrictions on the number of 411b3edd97SPaul Mundt# caller-save registers that the compiler can target when building this file. 421b3edd97SPaul Mundt# This is required because the code is called from a context in entry.S where 431b3edd97SPaul Mundt# very few registers have been saved in the exception handler (for speed 441b3edd97SPaul Mundt# reasons). 451b3edd97SPaul Mundt# The caller save registers that have been saved and which can be used are 461b3edd97SPaul Mundt# r2,r3,r4,r5 : argument passing 471b3edd97SPaul Mundt# r15, r18 : SP and LINK 481b3edd97SPaul Mundt# tr0-4 : allow all caller-save TR's. The compiler seems to be able to make 491b3edd97SPaul Mundt# use of them, so it's probably beneficial to performance to save them 501b3edd97SPaul Mundt# and have them available for it. 511b3edd97SPaul Mundt# 521b3edd97SPaul Mundt# The resources not listed below are callee save, i.e. the compiler is free to 531b3edd97SPaul Mundt# use any of them and will spill them to the stack itself. 541b3edd97SPaul Mundt 551b3edd97SPaul MundtCFLAGS_fault_64.o += -ffixed-r7 \ 561b3edd97SPaul Mundt -ffixed-r8 -ffixed-r9 -ffixed-r10 -ffixed-r11 -ffixed-r12 \ 571b3edd97SPaul Mundt -ffixed-r13 -ffixed-r14 -ffixed-r16 -ffixed-r17 -ffixed-r19 \ 581b3edd97SPaul Mundt -ffixed-r20 -ffixed-r21 -ffixed-r22 -ffixed-r23 \ 591b3edd97SPaul Mundt -ffixed-r24 -ffixed-r25 -ffixed-r26 -ffixed-r27 \ 601b3edd97SPaul Mundt -ffixed-r36 -ffixed-r37 -ffixed-r38 -ffixed-r39 -ffixed-r40 \ 611b3edd97SPaul Mundt -ffixed-r41 -ffixed-r42 -ffixed-r43 \ 621b3edd97SPaul Mundt -ffixed-r60 -ffixed-r61 -ffixed-r62 \ 631b3edd97SPaul Mundt -fomit-frame-pointer 641b3edd97SPaul Mundt 651b3edd97SPaul MundtEXTRA_CFLAGS += -Werror 66