mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:
1 parent
4e92b551f5
commit
816742b640
2 files changed
+12
-4
No files matched your search
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||