ia64/xen-unstable

changeset 15300:608ddb14259b

x86: Fix save_all regs macro for new CONFIG_FRAME_POINTER define.
Signed-off-by: Keir Fraser <keir@xensource.com>
author Keir Fraser <keir@xensource.com>
date Sun Jun 10 17:00:47 2007 +0100 (2007-06-10)
parents 91aeaf000ca2
children 4eb223694d0a
files xen/include/asm-x86/x86_32/asm_defns.h xen/include/asm-x86/x86_64/asm_defns.h
line diff
     1.1 --- a/xen/include/asm-x86/x86_32/asm_defns.h	Sun Jun 10 16:12:51 2007 +0100
     1.2 +++ b/xen/include/asm-x86/x86_32/asm_defns.h	Sun Jun 10 17:00:47 2007 +0100
     1.3 @@ -3,11 +3,16 @@
     1.4  
     1.5  #include <asm/percpu.h>
     1.6  
     1.7 -#ifndef NDEBUG
     1.8 +#ifdef CONFIG_FRAME_POINTER
     1.9  /* Indicate special exception stack frame by inverting the frame pointer. */
    1.10  #define SETUP_EXCEPTION_FRAME_POINTER           \
    1.11          movl  %esp,%ebp;                        \
    1.12          notl  %ebp
    1.13 +#else
    1.14 +#define SETUP_EXCEPTION_FRAME_POINTER
    1.15 +#endif
    1.16 +
    1.17 +#ifndef NDEBUG
    1.18  #define ASSERT_INTERRUPT_STATUS(x)              \
    1.19          pushf;                                  \
    1.20          testb $X86_EFLAGS_IF>>8,1(%esp);        \
    1.21 @@ -15,7 +20,6 @@
    1.22          ud2a;                                   \
    1.23  1:      addl  $4,%esp;
    1.24  #else
    1.25 -#define SETUP_EXCEPTION_FRAME_POINTER
    1.26  #define ASSERT_INTERRUPT_STATUS(x)
    1.27  #endif
    1.28  
     2.1 --- a/xen/include/asm-x86/x86_64/asm_defns.h	Sun Jun 10 16:12:51 2007 +0100
     2.2 +++ b/xen/include/asm-x86/x86_64/asm_defns.h	Sun Jun 10 17:00:47 2007 +0100
     2.3 @@ -3,11 +3,16 @@
     2.4  
     2.5  #include <asm/percpu.h>
     2.6  
     2.7 -#ifndef NDEBUG
     2.8 +#ifdef CONFIG_FRAME_POINTER
     2.9  /* Indicate special exception stack frame by inverting the frame pointer. */
    2.10  #define SETUP_EXCEPTION_FRAME_POINTER           \
    2.11          movq  %rsp,%rbp;                        \
    2.12          notq  %rbp
    2.13 +#else
    2.14 +#define SETUP_EXCEPTION_FRAME_POINTER
    2.15 +#endif
    2.16 +
    2.17 +#ifndef NDEBUG
    2.18  #define ASSERT_INTERRUPT_STATUS(x)              \
    2.19          pushf;                                  \
    2.20          testb $X86_EFLAGS_IF>>8,1(%rsp);        \
    2.21 @@ -15,7 +20,6 @@
    2.22          ud2a;                                   \
    2.23  1:      addq  $8,%rsp;
    2.24  #else
    2.25 -#define SETUP_EXCEPTION_FRAME_POINTER
    2.26  #define ASSERT_INTERRUPT_STATUS(x)
    2.27  #endif
    2.28