wrote ctx_switch functions
Merge branch 'master' of https://github.com/lrbloch/18349