microblaze: Fix problem with early_printk in startup
authorMichal Simek <monstr@monstr.eu>
Fri, 29 May 2009 12:15:33 +0000 (14:15 +0200)
committerMichal Simek <monstr@monstr.eu>
Sat, 30 May 2009 14:40:58 +0000 (16:40 +0200)
commitfee3c55d7fb9486f02d3285678d58e433ffe3c2a
tree0cf6fccaac5aab6d5d042f394874e9c51b8de079
parent4b2368ffd6e3563b73b8391c133822a58b1b432a
microblaze: Fix problem with early_printk in startup

Problem arise when is incopatibility between kernel/dts/pvr
and kernel tries to announce it. Early printk device
(uartlite in our case) was in TLB 2 and when kernel
extract DTB it necessary to allocate at least one
TLB at the end of memory. First free TLB was number two
where was early printk. But checking mechanism (kernel/dts/pvr)
was after extrahing but TLB 2 was different. This caused
that kernel hung up.
Moving early printk device to TLB 63 solve it and we don't
protect it which means that we can use early_printk messages
only for initial parts of kernel then we rewrite TLB 63.

Reported-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/misc.S