提交 29c380f5 编写于 作者: H Heiko Carstens 提交者: Martin Schwidefsky

[S390] memory detection: stop at first memory hole.

If both sclp and diag memory detection don't work stop at the first
memory hole. Otherwise the code might loop forever...
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: NHeiko Carstens <heiko.carstens@de.ibm.com>
上级 de46c337
...@@ -253,11 +253,10 @@ static noinline __init void find_memory_chunks(unsigned long memsize) ...@@ -253,11 +253,10 @@ static noinline __init void find_memory_chunks(unsigned long memsize)
break; break;
#endif #endif
/* /*
* Finish memory detection at the first hole, unless * Finish memory detection at the first hole
* - we reached the hsa -> skip it. * if storage size is unknown.
* - we know there must be more.
*/ */
if (cc == -1UL && !memsize && old_addr != ADDR2G) if (cc == -1UL && !memsize)
break; break;
if (memsize && addr >= memsize) if (memsize && addr >= memsize)
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册