diff options
Diffstat (limited to 'arch/mips/loongson/common/mem.c')
-rw-r--r-- | arch/mips/loongson/common/mem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/mips/loongson/common/mem.c b/arch/mips/loongson/common/mem.c index e93551dbc9ea..981e9190f393 100644 --- a/arch/mips/loongson/common/mem.c +++ b/arch/mips/loongson/common/mem.c | |||
@@ -20,8 +20,7 @@ void __init prom_init_memory(void) | |||
20 | 20 | ||
21 | add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize << | 21 | add_memory_region(memsize << 20, LOONGSON_PCI_MEM_START - (memsize << |
22 | 20), BOOT_MEM_RESERVED); | 22 | 20), BOOT_MEM_RESERVED); |
23 | #ifdef CONFIG_64BIT | 23 | #ifdef CONFIG_CPU_SUPPORTS_ADDRWINCFG |
24 | #ifdef CONFIG_CPU_LOONGSON2F | ||
25 | { | 24 | { |
26 | int bit; | 25 | int bit; |
27 | 26 | ||
@@ -36,8 +35,9 @@ void __init prom_init_memory(void) | |||
36 | 0x80000000ul, (1 << bit)); | 35 | 0x80000000ul, (1 << bit)); |
37 | mmiowb(); | 36 | mmiowb(); |
38 | } | 37 | } |
39 | #endif /* CONFIG_CPU_LOONGSON2F */ | 38 | #endif /* !CONFIG_CPU_SUPPORTS_ADDRWINCFG */ |
40 | 39 | ||
40 | #ifdef CONFIG_64BIT | ||
41 | if (highmemsize > 0) | 41 | if (highmemsize > 0) |
42 | add_memory_region(LOONGSON_HIGHMEM_START, | 42 | add_memory_region(LOONGSON_HIGHMEM_START, |
43 | highmemsize << 20, BOOT_MEM_RAM); | 43 | highmemsize << 20, BOOT_MEM_RAM); |
@@ -45,7 +45,7 @@ void __init prom_init_memory(void) | |||
45 | add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START - | 45 | add_memory_region(LOONGSON_PCI_MEM_END + 1, LOONGSON_HIGHMEM_START - |
46 | LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED); | 46 | LOONGSON_PCI_MEM_END - 1, BOOT_MEM_RESERVED); |
47 | 47 | ||
48 | #endif /* CONFIG_64BIT */ | 48 | #endif /* !CONFIG_64BIT */ |
49 | } | 49 | } |
50 | 50 | ||
51 | /* override of arch/mips/mm/cache.c: __uncached_access */ | 51 | /* override of arch/mips/mm/cache.c: __uncached_access */ |