fix asm_switch_context() for the x86 and x86_64 archs
authorarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Mar 2010 11:53:05 +0000 (11:53 +0000)
committerarighi <arighi@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 17 Mar 2010 11:53:05 +0000 (11:53 +0000)
commitfc34a91daf3bab5fac57c928bb4bb948e002e0fb
tree2c88731b6bb602adfbf9da449989e711acc4aa99
parent32d1445272120a254d77ce8d1af1f527da7a2c17
fix asm_switch_context() for the x86 and x86_64 archs

Save and restore all the callee-clobbered registers minus the return
registers, according to the x86 and x86_64 ABI.

git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3216 38d2e660-2303-0410-9eaa-f027e97ec537
bertos/cpu/frame.h
bertos/emul/switch_i386.S
bertos/emul/switch_x86_64.s