aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/microblaze/kernel/early_printk.c
diff options
context:
space:
mode:
authorMichal Simek <monstr@monstr.eu>2012-04-02 12:50:54 +0200
committerMichal Simek <monstr@monstr.eu>2012-04-02 13:00:22 +0200
commit0fc7374bb5df938ef3d386e48ac9797d7651e9cc (patch)
tree41c2fe3282ec9e88dad9f81bcbb85fa72f395d0e /arch/microblaze/kernel/early_printk.c
parentmicroblaze: Add missing headers caused by disintegration asm/system.h (diff)
downloadwireguard-linux-0fc7374bb5df938ef3d386e48ac9797d7651e9cc.tar.xz
wireguard-linux-0fc7374bb5df938ef3d386e48ac9797d7651e9cc.zip
microblaze: Do not use tlb_skip in early_printk
tlb_skip is valid only for MMU system. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/kernel/early_printk.c')
-rw-r--r--arch/microblaze/kernel/early_printk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c
index ec485876d0d0..aba1f9a97d5d 100644
--- a/arch/microblaze/kernel/early_printk.c
+++ b/arch/microblaze/kernel/early_printk.c
@@ -176,6 +176,7 @@ void __init remap_early_printk(void)
base_addr = (u32) ioremap(base_addr, PAGE_SIZE);
printk(KERN_CONT "0x%x\n", base_addr);
+#ifdef CONFIG_MMU
/*
* Early console is on the top of skipped TLB entries
* decrease tlb_skip size ensure that hardcoded TLB entry will be
@@ -189,6 +190,7 @@ void __init remap_early_printk(void)
* cmp rX, orig_base_addr
*/
tlb_skip -= 1;
+#endif
}
void __init disable_early_printk(void)