浏览代码

[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>
Ralf Baechle 19 年之前
父节点
当前提交
6adb5fe702
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      arch/mips/kernel/setup.c

+ 3 - 0
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);