From: Ingo Molnar Date: Wed, 30 Jan 2008 12:32:36 +0000 (+0100) Subject: x86: debug: double-check the empty zero page X-Git-Tag: v2.6.25-rc1~1143^2~432 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f2633105cd92b793dd6a6f623b4140287d46160a;p=linux-2.6-omap-h63xx.git x86: debug: double-check the empty zero page temporary debugging - remove before this hits v2.6.25. Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/mm/init_64.c b/arch/x86/mm/init_64.c index 6c3f6eb1f79..05f12c527b0 100644 --- a/arch/x86/mm/init_64.c +++ b/arch/x86/mm/init_64.c @@ -497,6 +497,14 @@ void __init mem_init(void) /* clear_bss() already clear the empty_zero_page */ + /* temporary debugging - double check it's true: */ + { + int i; + + for (i = 0; i < 1024; i++) + WARN_ON_ONCE(empty_zero_page[i]); + } + reservedpages = 0; /* this will put all low memory onto the freelists */