diff options
Diffstat (limited to 'arch/mips/mm')
-rw-r--r-- | arch/mips/mm/Makefile | 2 | ||||
-rw-r--r-- | arch/mips/mm/c-r4k.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/mm/Makefile b/arch/mips/mm/Makefile index 19a0e544c4e9..43e4810dcaa8 100644 --- a/arch/mips/mm/Makefile +++ b/arch/mips/mm/Makefile | |||
@@ -32,3 +32,5 @@ obj-$(CONFIG_IP22_CPU_SCACHE) += sc-ip22.o | |||
32 | obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o | 32 | obj-$(CONFIG_R5000_CPU_SCACHE) += sc-r5k.o |
33 | obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o | 33 | obj-$(CONFIG_RM7000_CPU_SCACHE) += sc-rm7k.o |
34 | obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o | 34 | obj-$(CONFIG_MIPS_CPU_SCACHE) += sc-mips.o |
35 | |||
36 | EXTRA_CFLAGS += -Werror | ||
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c index be96231dccb6..bad571971bf6 100644 --- a/arch/mips/mm/c-r4k.c +++ b/arch/mips/mm/c-r4k.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <asm/page.h> | 23 | #include <asm/page.h> |
24 | #include <asm/pgtable.h> | 24 | #include <asm/pgtable.h> |
25 | #include <asm/r4kcache.h> | 25 | #include <asm/r4kcache.h> |
26 | #include <asm/sections.h> | ||
26 | #include <asm/system.h> | 27 | #include <asm/system.h> |
27 | #include <asm/mmu_context.h> | 28 | #include <asm/mmu_context.h> |
28 | #include <asm/war.h> | 29 | #include <asm/war.h> |
@@ -1010,7 +1011,6 @@ static void __init probe_pcache(void) | |||
1010 | */ | 1011 | */ |
1011 | static int __init probe_scache(void) | 1012 | static int __init probe_scache(void) |
1012 | { | 1013 | { |
1013 | extern unsigned long stext; | ||
1014 | unsigned long flags, addr, begin, end, pow2; | 1014 | unsigned long flags, addr, begin, end, pow2; |
1015 | unsigned int config = read_c0_config(); | 1015 | unsigned int config = read_c0_config(); |
1016 | struct cpuinfo_mips *c = ¤t_cpu_data; | 1016 | struct cpuinfo_mips *c = ¤t_cpu_data; |
@@ -1019,7 +1019,7 @@ static int __init probe_scache(void) | |||
1019 | if (config & CONF_SC) | 1019 | if (config & CONF_SC) |
1020 | return 0; | 1020 | return 0; |
1021 | 1021 | ||
1022 | begin = (unsigned long) &stext; | 1022 | begin = (unsigned long) &_stext; |
1023 | begin &= ~((4 * 1024 * 1024) - 1); | 1023 | begin &= ~((4 * 1024 * 1024) - 1); |
1024 | end = begin + (4 * 1024 * 1024); | 1024 | end = begin + (4 * 1024 * 1024); |
1025 | 1025 | ||