Basics of context switching in arm processor using interrupts