Skip to contentSkip to conversation

Linuxppc-embedded Digest, Vol 39, Issue 19

DISCUSSION Siva Prasad 1 participant 2 messages Nov 13, 2007 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,=20

Some thing similar happened for me before. After I set the IRQ enable bits, it resulted in an exception. After analyzing the exception and SRR1 bits set, I was able to take care of it.

Other reason can be...
Immediately after you enable interrupts, any interrupt (which are already enabled) can cause the system to take a different path of servicing those interrupts. If some thing happens in that service routine, you are in for a surprise.

If you have a JTAG emulator, after system hangs, just halt it and see where it is executing. That may give a clue of what might have happened. Or, you can look at the stack, based on the register contents, to see the call back (difficult, but possible).

Good Luck.

- Siva

------------------------------

Date: Tue, 13 Nov 2007 12:04:59 +0100
From: fabien <[email protected]>
Subject: (beginner) Kernel fail during local_irq_enable()
To: [email protected]

I work on a custom board based on MPC8xx.

The bootloader on it is a ppcboot 1.1.5. I'm a beginner with Linux port

and ppc.
I'm trying to pass the board working with a 2.4.4 kernel to a 2.6.19
kernel

from denx.
The kernel hang when trying to enable interrupt in local_irq_enable()

in init/main.c.
Nothing happened after. Look at the printk log dumped from __log_buf
adresse with md ppcboot command.

#2 lore raw

Re: (beginner) Kernel fail during local_irq_enable()

In reply to a message not in the archive

Hi,=20

Some thing similar happened for me before. After I set the IRQ enable bits, it resulted in an exception. After analyzing the exception and SRR1 bits set, I was able to take care of it.

Other reason can be...
Immediately after you enable interrupts, any interrupt (which are already enabled) can cause the system to take a different path of servicing those interrupts. If some thing happens in that service routine, you are in for a surprise.

If you have a JTAG emulator, after system hangs, just halt it and see where it is executing. That may give a clue of what might have happened. Or, you can look at the stack, based on the register contents, to see the call back (difficult, but possible).

Good Luck.

- Siva

------------------------------

Date: Tue, 13 Nov 2007 12:04:59 +0100
From: fabien <[email protected]>
Subject: (beginner) Kernel fail during local_irq_enable()
To: [email protected]

I work on a custom board based on MPC8xx.

The bootloader on it is a ppcboot 1.1.5. I'm a beginner with Linux port

and ppc.
I'm trying to pass the board working with a 2.4.4 kernel to a 2.6.19
kernel

from denx.
The kernel hang when trying to enable interrupt in local_irq_enable()

in init/main.c.
Nothing happened after. Look at the printk log dumped from __log_buf
adresse with md ppcboot command.