arm: clobber only argument registers
authorIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:39:20 +0000 (17:39 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 25 Jul 2012 16:39:20 +0000 (17:39 +0100)
commitb75cc14b3435d57eb5d3648a203e137bae4052b2
tree7a24c03004e2f0d53fc719b9fc23a88055ce3255
parent866133571efffca388e098f9c9c075c8a8177216
arm: clobber only argument registers

Previously it was declared that r1..r4 would all be clobbered by all
hypercalls. Instead declare that only actually used hypercall argument
registers are clobbered. This is more inline with generally expected
conventions and allows for more optimal code in the caller in some cases.

This is an ABI change, although an older guest which expects more things to be
clobbered than we do now won't be adversely impacted.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/arch/arm/traps.c
xen/include/public/arch-arm.h