Commit 229d9c6d authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky

[S390] bss section clearing.

Clear only memory from __bss_start to __bss_stop when clearing the bss
section. Not until _end, which currently happens to be the same.
Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 2b932936
...@@ -110,7 +110,7 @@ static inline void create_kernel_nss(void) { } ...@@ -110,7 +110,7 @@ static inline void create_kernel_nss(void) { }
*/ */
static noinline __init void clear_bss_section(void) static noinline __init void clear_bss_section(void)
{ {
memset(__bss_start, 0, _end - __bss_start); memset(__bss_start, 0, __bss_stop - __bss_start);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment