]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86/paravirt: use callee-saved convention for pte_val/make_pte/etc
authorJeremy Fitzhardinge <jeremy@goop.org>
Wed, 28 Jan 2009 22:35:07 +0000 (14:35 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 30 Jan 2009 22:51:45 +0000 (14:51 -0800)
commitda5de7c22eb705be709a57e486e7475a6969b994
tree29b3655e38fea6bd6ef11437d2fea14b397c8b03
parent791bad9d28d405d9397ea0c370ffb7c7bdd2aa6e
x86/paravirt: use callee-saved convention for pte_val/make_pte/etc

Impact: Optimization

In the native case, pte_val, make_pte, etc are all just identity
functions, so there's no need to clobber a lot of registers over them.

(This changes the 32-bit callee-save calling convention to return both
EAX and EDX so functions can return 64-bit values.)

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/paravirt.h
arch/x86/kernel/paravirt.c
arch/x86/xen/mmu.c