Implement Re-entrant interrupt handler for ARM Cortex-M3/4