Thread (9 messages) flat view 9 messages, 2 authors, 2011-07-12
STALE5520d

[RFC PATCH 4/7] powerpc: Let simpleboot function with non zero-based memory maps

From: Michal Simek <monstr@monstr.eu>
Date: 2011-06-16 14:14:40
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds

From: John Williams <redacted>

It is unnecessarily restrictive to fatal() if there is physical memory at a
non-zero base address.

Signed-off-by: John Williams <redacted>
---
 arch/powerpc/boot/simpleboot.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
diff --git a/arch/powerpc/boot/simpleboot.c b/arch/powerpc/boot/simpleboot.c
index 21cd480..910ae05 100644
--- a/arch/powerpc/boot/simpleboot.c
+++ b/arch/powerpc/boot/simpleboot.c
@@ -56,11 +56,6 @@ void platform_init(unsigned long r3, unsigned long r4, unsigned long r5,
 	if (size < (*na+*ns) * sizeof(u32))
 		fatal("cannot get memory range\n");
 
-	/* Only interested in memory based at 0 */
-	for (i = 0; i < *na; i++)
-		if (*reg++ != 0)
-			fatal("Memory range is not based at address 0\n");
-
 	/* get the memsize and trucate it to under 4G on 32 bit machines */
 	memsize64 = 0;
 	for (i = 0; i < *ns; i++)
-- 
1.5.5.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help