Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269215
b: refs/heads/master
c: eab9e61
h: refs/heads/master
i:
  269213: 854a741
  269211: 9decd71
  269207: e3d16bb
  269199: 2e23e25
  269183: cb6f994
v: v3
  • Loading branch information
Jan Beulich authored and Ingo Molnar committed Sep 28, 2011
1 parent d05bcc3 commit 06a2790
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 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: e05139f2569ecf699b229a6473a86cdffed62956
refs/heads/master: eab9e6137f237681a04649e786cc4d942bedd6d1
2 changes: 2 additions & 0 deletions trunk/arch/x86/include/asm/dwarf2.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define CFI_REMEMBER_STATE .cfi_remember_state
#define CFI_RESTORE_STATE .cfi_restore_state
#define CFI_UNDEFINED .cfi_undefined
#define CFI_ESCAPE .cfi_escape

#ifdef CONFIG_AS_CFI_SIGNAL_FRAME
#define CFI_SIGNAL_FRAME .cfi_signal_frame
Expand Down Expand Up @@ -68,6 +69,7 @@
#define CFI_REMEMBER_STATE cfi_ignore
#define CFI_RESTORE_STATE cfi_ignore
#define CFI_UNDEFINED cfi_ignore
#define CFI_ESCAPE cfi_ignore
#define CFI_SIGNAL_FRAME cfi_ignore

#endif
Expand Down
14 changes: 9 additions & 5 deletions trunk/arch/x86/kernel/entry_64.S
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,15 @@ ENDPROC(native_usergs_sysret64)
1: incl PER_CPU_VAR(irq_count)
jne 2f
mov PER_CPU_VAR(irq_stack_ptr),%rsp
EMPTY_FRAME 0
CFI_DEF_CFA_REGISTER rsi

2: /* Store previous stack value */
pushq %rsi
CFI_ESCAPE 0x0f /* DW_CFA_def_cfa_expression */, 6, \
0x77 /* DW_OP_breg7 */, 0, \
0x06 /* DW_OP_deref */, \
0x08 /* DW_OP_const1u */, SS+8-RBP, \
0x22 /* DW_OP_plus */
/* We entered an interrupt context - irqs are off: */
TRACE_IRQS_OFF
.endm
Expand Down Expand Up @@ -788,7 +793,6 @@ END(interrupt)
subq $ORIG_RAX-RBP, %rsp
CFI_ADJUST_CFA_OFFSET ORIG_RAX-RBP
SAVE_ARGS_IRQ
PARTIAL_FRAME 0
call \func
.endm

Expand All @@ -813,10 +817,10 @@ ret_from_intr:

/* Restore saved previous stack */
popq %rsi
leaq 16(%rsi), %rsp

CFI_DEF_CFA_REGISTER rsi
leaq ARGOFFSET-RBP(%rsi), %rsp
CFI_DEF_CFA_REGISTER rsp
CFI_ADJUST_CFA_OFFSET -16
CFI_ADJUST_CFA_OFFSET RBP-ARGOFFSET

exit_intr:
GET_THREAD_INFO(%rcx)
Expand Down

0 comments on commit 06a2790

Please sign in to comment.