Working hardware context switch