x86: Fix save_all regs macro for new CONFIG_FRAME_POINTER define.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
Keir Fraser committed 2007-06-10 17:00:47 +01:00
1 parent 4e92b551f5
commit 816742b640
2 files changed
+12 -4

No files matched your search

+6 -2
View File
@@ -3,11 +3,16 @@
#include <asm/percpu.h>
#ifndef NDEBUG
#ifdef CONFIG_FRAME_POINTER
/* Indicate special exception stack frame by inverting the frame pointer. */
#define SETUP_EXCEPTION_FRAME_POINTER \
movl %esp,%ebp; \
notl %ebp
#else
#define SETUP_EXCEPTION_FRAME_POINTER
#endif
#ifndef NDEBUG
#define ASSERT_INTERRUPT_STATUS(x) \
pushf; \
testb $X86_EFLAGS_IF>>8,1(%esp); \
@@ -15,7 +20,6 @@
ud2a; \
1: addl $4,%esp;
#else
#define SETUP_EXCEPTION_FRAME_POINTER
#define ASSERT_INTERRUPT_STATUS(x)
#endif
+6 -2
View File
@@ -3,11 +3,16 @@
#include <asm/percpu.h>
#ifndef NDEBUG
#ifdef CONFIG_FRAME_POINTER
/* Indicate special exception stack frame by inverting the frame pointer. */
#define SETUP_EXCEPTION_FRAME_POINTER \
movq %rsp,%rbp; \
notq %rbp
#else
#define SETUP_EXCEPTION_FRAME_POINTER
#endif
#ifndef NDEBUG
#define ASSERT_INTERRUPT_STATUS(x) \
pushf; \
testb $X86_EFLAGS_IF>>8,1(%rsp); \
@@ -15,7 +20,6 @@
ud2a; \
1: addq $8,%rsp;
#else
#define SETUP_EXCEPTION_FRAME_POINTER
#define ASSERT_INTERRUPT_STATUS(x)
#endif
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.