aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-01-30 07:33:49 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:33:49 -0500
commit0e3a95492989e452a33e5df9b51365da574b854d (patch)
tree8f108ca3685f6f6fe5e7d7034fee83d1a88ddb6a
parent927222b102186a6cc3e43e25062fcd18c800435e (diff)
x86: early_ioremap_init(), enhance warnings
enhance the debug warning in early_ioremap_init(). Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--arch/x86/mm/ioremap_32.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/arch/x86/mm/ioremap_32.c b/arch/x86/mm/ioremap_32.c
index b743de841f68..f8e6c4709cc2 100644
--- a/arch/x86/mm/ioremap_32.c
+++ b/arch/x86/mm/ioremap_32.c
@@ -243,7 +243,22 @@ void __init early_ioremap_init(void)
243 pgd = early_ioremap_pgd(fix_to_virt(FIX_BTMAP_BEGIN)); 243 pgd = early_ioremap_pgd(fix_to_virt(FIX_BTMAP_BEGIN));
244 *pgd = __pa(bm_pte) | _PAGE_TABLE; 244 *pgd = __pa(bm_pte) | _PAGE_TABLE;
245 memset(bm_pte, 0, sizeof(bm_pte)); 245 memset(bm_pte, 0, sizeof(bm_pte));
246 BUG_ON(pgd != early_ioremap_pgd(fix_to_virt(FIX_BTMAP_END))); 246 /*
247 * The boot-ioremap range spans multiple pgds, for which
248 * we are not prepared:
249 */
250 if (pgd != early_ioremap_pgd(fix_to_virt(FIX_BTMAP_END))) {
251 WARN_ON(1);
252 printk("pgd %p != %p\n",
253 pgd, early_ioremap_pgd(fix_to_virt(FIX_BTMAP_END)));
254 printk("fix_to_virt(FIX_BTMAP_BEGIN): %08lx\n",
255 fix_to_virt(FIX_BTMAP_BEGIN));
256 printk("fix_to_virt(FIX_BTMAP_END): %08lx\n",
257 fix_to_virt(FIX_BTMAP_END));
258
259 printk("FIX_BTMAP_END: %d\n", FIX_BTMAP_END);
260 printk("FIX_BTMAP_BEGIN: %d\n", FIX_BTMAP_BEGIN);
261 }
247} 262}
248 263
249void __init early_ioremap_clear(void) 264void __init early_ioremap_clear(void)