added context switching function
Merged startup.s
Merged startup.s