Skip to content

Commit

Permalink
[MIPS] Only register RAM as resources if UNCAC_BASE != IO_BASE.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle committed Jun 29, 2006
1 parent 9247857 commit 6adb5fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/mips/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6adb5fe

Please sign in to comment.