Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 313657
b: refs/heads/master
c: d72be89
h: refs/heads/master
i:
  313655: cd5c7ee
v: v3
  • Loading branch information
Michael Neuling authored and Benjamin Herrenschmidt committed Jul 10, 2012
1 parent 9293eae commit bf19aa0
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 44ce6a5ee751893ecdedbd7544c645752a5dbc01
refs/heads/master: d72be892c810cb8269ed8a625fd925c30727639e
7 changes: 7 additions & 0 deletions trunk/arch/powerpc/include/asm/ppc_asm.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_SPLPAR)
#define HMT_HIGH or 3,3,3
#define HMT_EXTRA_HIGH or 7,7,7 # power7 only

#ifdef CONFIG_PPC64
#define ULONG_SIZE 8
#else
#define ULONG_SIZE 4
#endif
#define VCPU_GPR(n) (VCPU_GPRS + (n * ULONG_SIZE))

#ifdef __KERNEL__
#ifdef CONFIG_PPC64

Expand Down
3 changes: 0 additions & 3 deletions trunk/arch/powerpc/kvm/book3s_hv_rmhandlers.S
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ _GLOBAL(kvmppc_hv_entry_trampoline)
mtsrr1 r6
RFI

#define ULONG_SIZE 8
#define VCPU_GPR(n) (VCPU_GPRS + (n * ULONG_SIZE))

/******************************************************************************
* *
* Entry code *
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/powerpc/kvm/book3s_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,11 @@
#include <asm/exception-64s.h>

#if defined(CONFIG_PPC_BOOK3S_64)

#define ULONG_SIZE 8
#define FUNC(name) GLUE(.,name)

#elif defined(CONFIG_PPC_BOOK3S_32)

#define ULONG_SIZE 4
#define FUNC(name) name

#endif /* CONFIG_PPC_BOOK3S_XX */


#define VCPU_GPR(n) (VCPU_GPRS + (n * ULONG_SIZE))
#define VCPU_LOAD_NVGPRS(vcpu) \
PPC_LL r14, VCPU_GPR(R14)(vcpu); \
PPC_LL r15, VCPU_GPR(R15)(vcpu); \
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/powerpc/kvm/booke_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
#include <asm/page.h>
#include <asm/asm-offsets.h>

#define VCPU_GPR(n) (VCPU_GPRS + (n * 4))

/* The host stack layout: */
#define HOST_R1 0 /* Implied by stwu. */
#define HOST_CALLEE_LR 4
Expand Down
1 change: 0 additions & 1 deletion trunk/arch/powerpc/kvm/bookehv_interrupts.S
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@

#define LONGBYTES (BITS_PER_LONG / 8)

#define VCPU_GPR(n) (VCPU_GPRS + (n * LONGBYTES))
#define VCPU_GUEST_SPRG(n) (VCPU_GUEST_SPRGS + (n * LONGBYTES))

/* The host stack layout: */
Expand Down

0 comments on commit bf19aa0

Please sign in to comment.