/* Write new interrupt vector handler into the vector table Return previous handler address  */
ADDRESS mcf5xxx_set_handler(int vector, ADDRESS new_handler)
/* Write new interrupt vector handler into the vector table Return previous handler address  */
ADDRESS mcf5xxx_set_handler(int vector, ADDRESS new_handler)
{
    ADDRESS old_handler;
    extern uint32 __VECTOR_RAM[];
    old_handler = (ADDRESS) __VECTOR_RAM[vector];
    __VECTOR_RAM[vector] = (uint32)new_handler;
    return old_handler;
}