提交 6adb5fe7 编写于 作者: R Ralf Baechle

[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: NRalf Baechle <ralf@linux-mips.org>
上级 9247857f
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册