Sounds like a similar question to this one?
> If all the priviledges are using same set of registers wouldnt it corrupt the register values, how is it overcomed ?
The OS will presumably deal with saving and restoring registers as needed.
The general approach will be similar to or the same as any register save/restore mechanism for interrupts, exceptions, threads etc.