Commit 6adb5fe7 authored by Ralf Baechle's avatar 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: default avatarRalf Baechle <ralf@linux-mips.org>
parent 9247857f
...@@ -488,6 +488,9 @@ static inline void resource_init(void) ...@@ -488,6 +488,9 @@ static inline void resource_init(void)
{ {
int i; int i;
if (UNCAC_BASE != IO_BASE)
return;
code_resource.start = virt_to_phys(&_text); code_resource.start = virt_to_phys(&_text);
code_resource.end = virt_to_phys(&_etext) - 1; code_resource.end = virt_to_phys(&_etext) - 1;
data_resource.start = virt_to_phys(&_etext); data_resource.start = virt_to_phys(&_etext);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment