Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a2cb0737 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

[S390] Fix memory detection.



Before we're getting short on memory detection fixes here is the next
one: if neither sclp nor diag260 report the storage size the detection
loop will return immediately without detecting anything. Fix this by
breaking the detection loop only if the memory end is known.

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 70cf5035
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -200,7 +200,7 @@ static noinline __init void find_memory_chunks(unsigned long memsize)
		cc = __tprot(addr);
		cc = __tprot(addr);
		while (cc == old_cc) {
		while (cc == old_cc) {
			addr += CHUNK_INCR;
			addr += CHUNK_INCR;
			if (addr >= memsize)
			if (memsize && addr >= memsize)
				break;
				break;
#ifndef CONFIG_64BIT
#ifndef CONFIG_64BIT
			if (addr == ADDR2G)
			if (addr == ADDR2G)