diff options
author | Michael Neuling <mikey@neuling.org> | 2012-06-25 09:33:15 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2012-07-10 05:18:06 -0400 |
commit | d72be892c810cb8269ed8a625fd925c30727639e (patch) | |
tree | dad7589166a4a61fe62f71079b5a42a83cefb697 /arch/powerpc/kvm/book3s_interrupts.S | |
parent | 44ce6a5ee751893ecdedbd7544c645752a5dbc01 (diff) |
powerpc: Merge VCPU_GPR
Merge the defines of VCPU_GPR from different places.
Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kvm/book3s_interrupts.S')
-rw-r--r-- | arch/powerpc/kvm/book3s_interrupts.S | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/arch/powerpc/kvm/book3s_interrupts.S b/arch/powerpc/kvm/book3s_interrupts.S index 2ddab0f90a81..48cbbf862958 100644 --- a/arch/powerpc/kvm/book3s_interrupts.S +++ b/arch/powerpc/kvm/book3s_interrupts.S | |||
@@ -25,19 +25,11 @@ | |||
25 | #include <asm/exception-64s.h> | 25 | #include <asm/exception-64s.h> |
26 | 26 | ||
27 | #if defined(CONFIG_PPC_BOOK3S_64) | 27 | #if defined(CONFIG_PPC_BOOK3S_64) |
28 | |||
29 | #define ULONG_SIZE 8 | ||
30 | #define FUNC(name) GLUE(.,name) | 28 | #define FUNC(name) GLUE(.,name) |
31 | |||
32 | #elif defined(CONFIG_PPC_BOOK3S_32) | 29 | #elif defined(CONFIG_PPC_BOOK3S_32) |
33 | |||
34 | #define ULONG_SIZE 4 | ||
35 | #define FUNC(name) name | 30 | #define FUNC(name) name |
36 | |||
37 | #endif /* CONFIG_PPC_BOOK3S_XX */ | 31 | #endif /* CONFIG_PPC_BOOK3S_XX */ |
38 | 32 | ||
39 | |||
40 | #define VCPU_GPR(n) (VCPU_GPRS + (n * ULONG_SIZE)) | ||
41 | #define VCPU_LOAD_NVGPRS(vcpu) \ | 33 | #define VCPU_LOAD_NVGPRS(vcpu) \ |
42 | PPC_LL r14, VCPU_GPR(R14)(vcpu); \ | 34 | PPC_LL r14, VCPU_GPR(R14)(vcpu); \ |
43 | PPC_LL r15, VCPU_GPR(R15)(vcpu); \ | 35 | PPC_LL r15, VCPU_GPR(R15)(vcpu); \ |