x86: fix GET_STACK_END
authorWei Liu <wei.liu2@citrix.com>
Wed, 24 Jan 2018 20:26:26 +0000 (20:26 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 25 Jan 2018 11:34:17 +0000 (11:34 +0000)
commit8155476765a5bdecea1534b46562cf28e0113a9a
treeeea3c9d96152aafba3273e1a39723b2e83d1b564
parent6d53d4ce621ee80e732152a545a55ab6762a830b
x86: fix GET_STACK_END

AIUI the purpose of having the .if directive is to make GET_STACK_END
work with any general purpose registers. The code as-is would produce
the wrong result for r8. Fix it.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/asm_defns.h