From 49b3408fe8414ccb1d206cf746323a30656e2d94 Mon Sep 17 00:00:00 2001 From: Naveen Ramaraj Date: Tue, 18 Aug 2015 17:54:54 -0700 Subject: [PATCH] mm: Fix mem_init_print_info() for UML UML uses _end instead of __bss_stop to represent the boundary Bug: 21631098 Change-Id: I9ad92d99d3de2ca89497b1a14d98322c43ea99fa Signed-off-by: Naveen Ramaraj --- mm/page_alloc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mm/page_alloc.c b/mm/page_alloc.c index b056a7fb37a0..2b5c2517410e 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -5461,7 +5461,11 @@ void __init mem_init_print_info(const char *str) codesize = _etext - _stext; datasize = _edata - _sdata; rosize = __end_rodata - __start_rodata; +#ifdef CONFIG_UML + bss_size = _end - __bss_start; +#else bss_size = __bss_stop - __bss_start; +#endif init_data_size = __init_end - __init_begin; init_code_size = _einittext - _sinittext;