powerpc/epapr: add "memory" as a clobber to all hypercalls
authorTimur Tabi <timur@freescale.com>
Thu, 15 Mar 2012 22:41:02 +0000 (17:41 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 29 Mar 2012 13:14:14 +0000 (08:14 -0500)
commit3b588c7efc84f15548afdda6a0d2f892fe83babc
tree0978d6ec180f899259b5a4a8f8569e29cc6bef7d
parent2a78aeb1078994f6dab0173c2ecf5d9803ef0e8e
powerpc/epapr: add "memory" as a clobber to all hypercalls

The "memory" clobber tells the compiler to ensure that all writes to memory
are committed before the hypercall is made.

"memory" is only necessary for hcalls where the Hypervisor will read or
write guest memory. However, we add it to all hcalls because the impact is
minimal, and we want to ensure that it's present for the hcalls that need
it.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/include/asm/epapr_hcalls.h