Cortex-M3: improved core exception handling