[MIPS] Only register RAM as resources if UNCAC_BASE != IO_BASE.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 20 Jun 2006 11:47:53 +0000 (12:47 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 29 Jun 2006 20:10:34 +0000 (21:10 +0100)
This fixes a resource collision of RAM and I/O memory on systems that
use the physical address space multiple times.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/setup.c

index bfcec8d9bfe4bb4f202bf61c501f49738e12611c..d3e087115023ad0ef6867b5bd12c504ac3b070c5 100644 (file)
@@ -488,6 +488,9 @@ static inline void resource_init(void)
 {
        int i;
 
+       if (UNCAC_BASE != IO_BASE)
+               return;
+
        code_resource.start = virt_to_phys(&_text);
        code_resource.end = virt_to_phys(&_etext) - 1;
        data_resource.start = virt_to_phys(&_etext);
This page took 0.026894 seconds and 5 git commands to generate.