Re: readb macro

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On 6/13/07, Rajat Jain <rajat.noida.india@xxxxxxxxx> wrote:
> > 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.
> >s
> > 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...

Console initialization shouldn't matter shouldn't matter. printk()
starts dumping messages to log_buf much before console_init().

Devvrat, what is the error message just before the oops?

it just stops working. something is printed and after that nothing happens. I dont get an error message

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux