Re: kernel/printk.c problem

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

 



Geert Uytterhoeven wrote:
> 
> On Tue, 17 Apr 2001, Scott A McConnell wrote:
> > struct console *console_drivers = NULL;                          <----
> > Need the NULL.
> >
> > Otherwise, bad things can happen on the following statement in printk
> >
> > ~line 311
> >
> >        if ((c->flags & CON_ENABLED) && c->write){
> 
> Current policy is not explicitly initializing variables to zero. If this causes
> problems, there's a bug in the routine that clears the BSS on kernel entry.
> 

Interesting.  What is the reason behind the policy?  Is that because
initialized variable are put in a different section that takes more size in
the image?

Jun


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux