Commit 0fc7374b authored by Michal Simek's avatar Michal Simek

microblaze: Do not use tlb_skip in early_printk

tlb_skip is valid only for MMU system.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 90c0d80d
...@@ -176,6 +176,7 @@ void __init remap_early_printk(void) ...@@ -176,6 +176,7 @@ void __init remap_early_printk(void)
base_addr = (u32) ioremap(base_addr, PAGE_SIZE); base_addr = (u32) ioremap(base_addr, PAGE_SIZE);
printk(KERN_CONT "0x%x\n", base_addr); printk(KERN_CONT "0x%x\n", base_addr);
#ifdef CONFIG_MMU
/* /*
* Early console is on the top of skipped TLB entries * Early console is on the top of skipped TLB entries
* decrease tlb_skip size ensure that hardcoded TLB entry will be * decrease tlb_skip size ensure that hardcoded TLB entry will be
...@@ -189,6 +190,7 @@ void __init remap_early_printk(void) ...@@ -189,6 +190,7 @@ void __init remap_early_printk(void)
* cmp rX, orig_base_addr * cmp rX, orig_base_addr
*/ */
tlb_skip -= 1; tlb_skip -= 1;
#endif
} }
void __init disable_early_printk(void) void __init disable_early_printk(void)
......
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