renamed context switch asm functions and reducing redundant asm code