Skip to content

Commit

Permalink
microblaze: Do not use tlb_skip in early_printk
Browse files Browse the repository at this point in the history
tlb_skip is valid only for MMU system.

Signed-off-by: Michal Simek <monstr@monstr.eu>
  • Loading branch information
Michal Simek committed Apr 2, 2012
1 parent 90c0d80 commit 0fc7374
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/microblaze/kernel/early_printk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 0fc7374

Please sign in to comment.