Federico Ulivi

Trap handling in linux kernel for 547x

Discussion created by Federico Ulivi on May 27, 2008
Latest reply on Jun 4, 2008 by Klaus Kuehnhammer
Hi everyone,

I'm working on a port of the 2.6.23 kernel to mcf547x processors (I posted a couple of messages on this forum a while back). The port is based on the existing Freescale sources for the mcf54455 cpu.
I recently noticed that the code to handle traps is unusable (except for TRAP #0), because it looks just like a copy & paste of the 680x0 code with no adaptation of any sort to coldfire. For example, the differences in exception stack format between 680x0 and coldfire are not addressed at all.
Unfortunately correct handling of traps is needed to use gdb for debugging, as breakpoints are handled by inserting "trap #15" instructions.
Is anyone at Freescale working on adapting the trap handling to mcf547x?
I'd like to know whether someone is working on it or I'd better fix it myself.. :smileywink:

Thanks a lot.

Regards,
Federico Ulivi
Embedded software developer

Sky-Technology srl
V. Gonin, 55
20147 Milano - Italia
www.skytechnology.it

Outcomes