aboutsummaryrefslogtreecommitdiff
path: root/arch/microblaze/kernel/early_printk.c
diff options
context:
space:
mode:
authorMichal Simek2009-05-26 16:30:10 +0200
committerMichal Simek2009-05-26 16:45:14 +0200
commita43acfbbc8653f70b8da4c64ec534fb45065a2ee (patch)
tree925a99f53136804e2ce8f112653bdd9ef5feab5f /arch/microblaze/kernel/early_printk.c
parent5846cc608fd42cd3645ff9f841888832c6ef9b6e (diff)
microblaze_mmu_v2: Alocate TLB for early console
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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/microblaze/kernel/early_printk.c b/arch/microblaze/kernel/early_printk.c
index 4b0f0fdb9ca0..7de84923ba07 100644
--- a/arch/microblaze/kernel/early_printk.c
+++ b/arch/microblaze/kernel/early_printk.c
@@ -87,6 +87,9 @@ int __init setup_early_printk(char *opt)
base_addr = early_uartlite_console();
if (base_addr) {
early_console_initialized = 1;
+#ifdef CONFIG_MMU
+ early_console_reg_tlb_alloc(base_addr);
+#endif
early_printk("early_printk_console is enabled at 0x%08x\n",
base_addr);