Exception in kernel mode
Charles Krinke
ckrinke at istor.com
Fri Mar 16 05:19:08 EST 2007
Obviously, you've got an exception in the decrementer exception
handler
itself -- and this was something like program check exception, judging
on the
signal you've got (SIGILL).
> So, with that said:
> "What might be the causes of such an exception from the decrementer in
a
> 2.6.17.11 ppc8241 kernel?"
> "Where should one concentrate ones efforts in figuring this out?"
Hrm, looks like some CPU errata maybe...
WBR, Sergei
Thank you very much for the great hint. I have a follow-up question.
I can see from arch/ppc/kernel/head.S that the EXCEPTION_PROLOG macro is
the first instruction in the decrementer ISR and it says (amongst other
things):
mtspr SPRN_SPRG0, r10
mtspr SPRN_SPRG1, r11
Which is, I believe, moving r10 to SPRG0 and r11 to SPRG1.
So, how do we know that r10 and r11 are always valid in an interrupt
context? Are we setting aside r10 and r11 somewhere else in
initialization for this purpose? I have looked at the -ffixed-r2 in the
CFLAGS and see it is set aside, but it doesn't appear the build process
sets r10 & r11 aside for the exclusive use of interrupt routines. Is
there a shadow register set in the 8241 I havent appreciated yet?
I have to admit that I am only modestly familiar with the ppc family but
would appreciate any insight to understand how this interrupt code
works.
Charles
More information about the Linuxppc-embedded
mailing list