diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-06-20 12:47:53 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2006-06-29 21:10:34 +0100 |
commit | 6adb5fe7020e8f99d27da932157ea27325df9263 (patch) | |
tree | c4bf688c3c6dfd822391dd5f80a879c13cf0aac2 /arch | |
parent | 9247857f5acadf0ea87fd6a9514c633644634f08 (diff) | |
download | linux-3.10-6adb5fe7020e8f99d27da932157ea27325df9263.tar.gz linux-3.10-6adb5fe7020e8f99d27da932157ea27325df9263.tar.bz2 linux-3.10-6adb5fe7020e8f99d27da932157ea27325df9263.zip |
[MIPS] Only register RAM as resources if UNCAC_BASE != IO_BASE.
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c index bfcec8d9bfe..d3e08711502 100644 --- a/arch/mips/kernel/setup.c +++ b/arch/mips/kernel/setup.c @@ -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); |