On 6/12/07, Mulyadi Santosa <mulyadi.santosa@xxxxxxxxx> wrote:
Hi...
> i inserted a printk in asm/io.h in the __readb function to get some data
> about mmio transfer. I am able to compile the kernel properly but donno why
> it crashes at boot time.Can anyone help me with this. what can be the reason
> for this crash.this is what i have done.
>
> static __always_inline __u32 __readl(const volatile void __iomem *addr)
> {
>
> printk("r bytes 4 addr %p \n",addr);
> return *(__force volatile __u32 *)addr;
> }
maybe because console isn't fully initialized? try using
printk_early() instead...
regards,
Mulyadi
printk_early is not there in 2.6.18 . can u suggest some other alternative