x86/asm: Drop __GET_CURRENT()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 29 Jan 2018 18:01:35 +0000 (18:01 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 30 Jan 2018 10:28:59 +0000 (10:28 +0000)
commit1943e8fe359e8b507759acea139e6fc9be241105
tree0b9a004e5bddd7917f435680b6c9d5000d7af50b
parent43cc31b4778ed8313c4324547da1f46037132c52
x86/asm: Drop __GET_CURRENT()

__GET_CURRENT() is dangerous to use, as is easy to confuse with GET_CURRENT(),
but strictly depends on the regster parameter already having the STACK_END
value in it.  Also, there is no reason to special case accesses of
current_vcpu differently to other cpuinfo fields.

Expand __GET_CURRENT() in its current users, and remove the macro.

Take the opportunity to replace the GET_CURRENT() in the cstar path which
doesn't need to recalculate STACK_END.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/x86_64/compat/entry.S
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/asm_defns.h