Write some sort of fixed value at the end of each stack space. Check for its presence at the end of every context switch.
Write some sort of fixed value at the end of each stack space. Check for its presence at the end of every context switch.