From f714ff3a5bec401d5e764704fee0461fa2fe3e46 Mon Sep 17 00:00:00 2001 From: Timur Tabi Date: Thu, 15 Mar 2012 17:41:02 -0500 Subject: [PATCH] --- yaml --- r: 298399 b: refs/heads/master c: 3b588c7efc84f15548afdda6a0d2f892fe83babc h: refs/heads/master i: 298397: 0997058d371af42dca48cf597d711d08a7112e2a 298395: 954993b5f46ce23e5894c50d375227711e614c88 298391: 19b1716898d439db3fe49c0c39f3aeb3522f6012 298383: 9392da18a7619b3ba81fcb7cb94f9bd6c8807ae7 298367: 82e8cc85497ba395c7e5dc47a739cad9e4ecffc3 v: v3 --- [refs] | 2 +- trunk/arch/powerpc/include/asm/epapr_hcalls.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 5f2ab0c7c0ff..45a7c7ea5c93 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2a78aeb1078994f6dab0173c2ecf5d9803ef0e8e +refs/heads/master: 3b588c7efc84f15548afdda6a0d2f892fe83babc diff --git a/trunk/arch/powerpc/include/asm/epapr_hcalls.h b/trunk/arch/powerpc/include/asm/epapr_hcalls.h index f3b0c2cc9fea..976835d8f22e 100644 --- a/trunk/arch/powerpc/include/asm/epapr_hcalls.h +++ b/trunk/arch/powerpc/include/asm/epapr_hcalls.h @@ -134,10 +134,15 @@ * whether they will be clobbered. * * Note that r11 can be used as an output parameter. + * + * The "memory" clobber 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. */ /* List of common clobbered registers. Do not use this macro. */ -#define EV_HCALL_CLOBBERS "r0", "r12", "xer", "ctr", "lr", "cc" +#define EV_HCALL_CLOBBERS "r0", "r12", "xer", "ctr", "lr", "cc", "memory" #define EV_HCALL_CLOBBERS8 EV_HCALL_CLOBBERS #define EV_HCALL_CLOBBERS7 EV_HCALL_CLOBBERS8, "r10"