x86: enhance rsp-relative calculations
authorJan Beulich <jbeulich@suse.com>
Wed, 26 Sep 2012 09:48:21 +0000 (11:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 26 Sep 2012 09:48:21 +0000 (11:48 +0200)
commitf430ebef51f16767ec5e127131cdb3115aa1ae1b
treec8b773123e62b3066cf0b157c0f86dfc2eba456a
parentd9de3dbee34504651572b07d90950902a47b7919
x86: enhance rsp-relative calculations

The use of "or" in GET_CPUINFO_FIELD so far wasn't ideal, as it doesn't
lend itself to folding this operation with a possibly subsequent one
(e.g. the well known mov+add=lea conversion). Split out the sub-
operations, and shorten assembly code slightly with this.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/asm_defns.h
xen/include/asm-x86/x86_64/asm_defns.h