Re: [PATCH 24/27] PPC: Export SWITCH_FRAME_SIZE

2010-04-16 Thread Benjamin Herrenschmidt
On Fri, 2010-04-16 at 00:11 +0200, Alexander Graf wrote:
 We need the SWITCH_FRAME_SIZE define on Book3S_32 now too.
 So let's export it unconditionally.
 

Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org

 Signed-off-by: Alexander Graf ag...@suse.de
 ---
  arch/powerpc/kernel/asm-offsets.c |2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
 
 diff --git a/arch/powerpc/kernel/asm-offsets.c 
 b/arch/powerpc/kernel/asm-offsets.c
 index 1804c2c..2716c51 100644
 --- a/arch/powerpc/kernel/asm-offsets.c
 +++ b/arch/powerpc/kernel/asm-offsets.c
 @@ -210,8 +210,8 @@ int main(void)
   /* Interrupt register frame */
   DEFINE(STACK_FRAME_OVERHEAD, STACK_FRAME_OVERHEAD);
   DEFINE(INT_FRAME_SIZE, STACK_INT_FRAME_SIZE);
 -#ifdef CONFIG_PPC64
   DEFINE(SWITCH_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct 
 pt_regs));
 +#ifdef CONFIG_PPC64
   /* Create extra stack space for SRR0 and SRR1 when calling prom/rtas. */
   DEFINE(PROM_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 
 16);
   DEFINE(RTAS_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 
 16);


--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 24/27] PPC: Export SWITCH_FRAME_SIZE

2010-04-15 Thread Alexander Graf
We need the SWITCH_FRAME_SIZE define on Book3S_32 now too.
So let's export it unconditionally.

CC: Benjamin Herrenschmidt b...@kernel.crashing.org
Signed-off-by: Alexander Graf ag...@suse.de
---
 arch/powerpc/kernel/asm-offsets.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/powerpc/kernel/asm-offsets.c 
b/arch/powerpc/kernel/asm-offsets.c
index 1804c2c..2716c51 100644
--- a/arch/powerpc/kernel/asm-offsets.c
+++ b/arch/powerpc/kernel/asm-offsets.c
@@ -210,8 +210,8 @@ int main(void)
/* Interrupt register frame */
DEFINE(STACK_FRAME_OVERHEAD, STACK_FRAME_OVERHEAD);
DEFINE(INT_FRAME_SIZE, STACK_INT_FRAME_SIZE);
-#ifdef CONFIG_PPC64
DEFINE(SWITCH_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct 
pt_regs));
+#ifdef CONFIG_PPC64
/* Create extra stack space for SRR0 and SRR1 when calling prom/rtas. */
DEFINE(PROM_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 
16);
DEFINE(RTAS_FRAME_SIZE, STACK_FRAME_OVERHEAD + sizeof(struct pt_regs) + 
16);
-- 
1.6.0.2

--
To unsubscribe from this list: send the line unsubscribe kvm in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html