CM3: introduce asm_switch_context().