David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 1 | # |
| 2 | # Makefile for the MN10300-specific memory management code |
| 3 | # |
| 4 | |
Akira Takeuchi | 8be0628 | 2010-10-27 17:28:47 +0100 | [diff] [blame] | 5 | cache-smp-wback-$(CONFIG_MN10300_CACHE_WBACK) := cache-smp-flush.o |
| 6 | |
David Howells | 518d4bb | 2010-10-27 17:28:43 +0100 | [diff] [blame] | 7 | cacheflush-y := cache.o |
Akira Takeuchi | 8be0628 | 2010-10-27 17:28:47 +0100 | [diff] [blame] | 8 | cacheflush-$(CONFIG_SMP) += cache-smp.o cache-smp-inv.o $(cache-smp-wback-y) |
David Howells | b478491 | 2010-10-27 17:28:46 +0100 | [diff] [blame] | 9 | cacheflush-$(CONFIG_MN10300_CACHE_INV_ICACHE) += cache-inv-icache.o |
| 10 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_ICACHE) += cache-flush-icache.o |
David Howells | 518d4bb | 2010-10-27 17:28:43 +0100 | [diff] [blame] | 11 | cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_TAG) += cache-inv-by-tag.o |
Akira Takeuchi | 9731d23 | 2010-10-27 17:28:45 +0100 | [diff] [blame] | 12 | cacheflush-$(CONFIG_MN10300_CACHE_INV_BY_REG) += cache-inv-by-reg.o |
David Howells | 518d4bb | 2010-10-27 17:28:43 +0100 | [diff] [blame] | 13 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_TAG) += cache-flush-by-tag.o |
Akira Takeuchi | 9731d23 | 2010-10-27 17:28:45 +0100 | [diff] [blame] | 14 | cacheflush-$(CONFIG_MN10300_CACHE_FLUSH_BY_REG) += cache-flush-by-reg.o |
David Howells | 62bdb28 | 2010-09-29 01:57:02 +0100 | [diff] [blame] | 15 | |
David Howells | 7f386ac | 2011-03-18 16:54:30 +0000 | [diff] [blame] | 16 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_TAG) += \ |
| 17 | cache-dbg-flush-by-tag.o cache-dbg-inv-by-tag.o |
| 18 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_FLUSH_BY_REG) += \ |
| 19 | cache-dbg-flush-by-reg.o |
| 20 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_TAG) += \ |
| 21 | cache-dbg-inv-by-tag.o cache-dbg-inv.o |
| 22 | cacheflush-$(CONFIG_MN10300_DEBUGGER_CACHE_INV_BY_REG) += \ |
| 23 | cache-dbg-inv-by-reg.o cache-dbg-inv.o |
| 24 | |
David Howells | 62bdb28 | 2010-09-29 01:57:02 +0100 | [diff] [blame] | 25 | cacheflush-$(CONFIG_MN10300_CACHE_DISABLED) := cache-disabled.o |
| 26 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 27 | obj-y := \ |
| 28 | init.o fault.o pgtable.o extable.o tlb-mn10300.o mmu-context.o \ |
David Howells | 62bdb28 | 2010-09-29 01:57:02 +0100 | [diff] [blame] | 29 | misalignment.o dma-alloc.o $(cacheflush-y) |
Akira Takeuchi | 965ea4b | 2010-10-27 17:28:51 +0100 | [diff] [blame] | 30 | |
| 31 | obj-$(CONFIG_SMP) += tlb-smp.o |