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/include/asm/ppc_asm.h | |
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/include/asm/ppc_asm.h')
-rw-r--r-- | arch/powerpc/include/asm/ppc_asm.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/ppc_asm.h b/arch/powerpc/include/asm/ppc_asm.h index c0c6318e7c24..2c7edd567738 100644 --- a/arch/powerpc/include/asm/ppc_asm.h +++ b/arch/powerpc/include/asm/ppc_asm.h | |||
@@ -178,6 +178,13 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR) | |||
178 | #define HMT_HIGH or 3,3,3 | 178 | #define HMT_HIGH or 3,3,3 |
179 | #define HMT_EXTRA_HIGH or 7,7,7 # power7 only | 179 | #define HMT_EXTRA_HIGH or 7,7,7 # power7 only |
180 | 180 | ||
181 | #ifdef CONFIG_PPC64 | ||
182 | #define ULONG_SIZE 8 | ||
183 | #else | ||
184 | #define ULONG_SIZE 4 | ||
185 | #endif | ||
186 | #define VCPU_GPR(n) (VCPU_GPRS + (n * ULONG_SIZE)) | ||
187 | |||
181 | #ifdef __KERNEL__ | 188 | #ifdef __KERNEL__ |
182 | #ifdef CONFIG_PPC64 | 189 | #ifdef CONFIG_PPC64 |
183 | 190 | ||