Thread (7 messages) flat view 7 messages, 5 authors, 2004-01-22

Re: local_irq_enable() problem...

From: Etsushi Kato <hidden>
Date: 2004-01-20 13:34:55

On Tue, Jan 20, 2004 at 11:03:41AM +0100,
Geert Uytterhoeven [off-list ref] wrote:
On Tue, 20 Jan 2004, Etsushi Kato wrote:
quoted
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@ees.hokudai.ac.jp

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help