local_irq_enable() problem...

Etsushi Kato ekato at ees.hokudai.ac.jp
Wed Jan 21 00:34:55 EST 2004


On Tue, Jan 20, 2004 at 11:03:41AM +0100,
Geert Uytterhoeven <geert at linux-m68k.org> wrote:

> On Tue, 20 Jan 2004, Etsushi Kato wrote:
> > I just started porting Linux 2.6 for nubus powermac.  I've applied most
> > of 2.4 nubus patch to 2.6.1-rc2, and kernel compiles fine now.  But in
> > the early booting of kernel, it hangs while doing local_irq_enable()
> > just after profile_init() in start_kernel() of init/main.c.
> >
> > How can I debug kernel in this situation?  printk() is working, and
> > boot messages are shown with serial connection until "Console: colour
> > dummy device 80x25".
>
> Did you pass `console=ttyS0'?

Yup.  I set up 'console=ttyS0,38400n8 console=tty0' as a cmdline
option.

In the early boot sequence, 2.6 kernel freezes just after showing
'arch_exit' on the screen, and 'Console: colour dummy device 80x25' on
the serial console.  Even if I put printk() right after
local_irq_enable() in init/main.c, this debug print won't show up.  So
it seems something causes kernel hang while enabling MSR_EE bit, but I
can't figure out how to detect...  Does anyone have a clue?

> If all else fails, add a call to your serial print routine in
> kernel/printk.c:printk(), right after the va_end.

OK.  Thanks.
--
Etsushi Kato
ekato at ees.hokudai.ac.jp

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list