projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9247857
)
[MIPS] Only register RAM as resources if UNCAC_BASE != IO_BASE.
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 20 Jun 2006 11:47:53 +0000
(12:47 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Thu, 29 Jun 2006 20:10:34 +0000
(21:10 +0100)
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>
arch/mips/kernel/setup.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/kernel/setup.c
b/arch/mips/kernel/setup.c
index bfcec8d9bfe4bb4f202bf61c501f49738e12611c..d3e087115023ad0ef6867b5bd12c504ac3b070c5 100644
(file)
--- 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);