Browse Source

[PATCH] x86_64: small fix for CFI annotations

Conditionalize two unwind directives to match other similarly
conditional code.

Signed-Off-By: Jan Beulich <jbeulich@novell.com>
Cc: Jim Houston <jim.houston@ccur.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Jan Beulich 19 năm trước cách đây
mục cha
commit
91522a964b
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      arch/x86_64/kernel/entry.S

+ 4 - 0
arch/x86_64/kernel/entry.S

@@ -499,7 +499,9 @@ ENTRY(stub_rt_sigreturn)
 	movq %gs:pda_irqstackptr,%rax
 	movq %gs:pda_irqstackptr,%rax
 	cmoveq %rax,%rsp /*todo This needs CFI annotation! */
 	cmoveq %rax,%rsp /*todo This needs CFI annotation! */
 	pushq %rdi			# save old stack	
 	pushq %rdi			# save old stack	
+#ifndef CONFIG_DEBUG_INFO
 	CFI_ADJUST_CFA_OFFSET	8
 	CFI_ADJUST_CFA_OFFSET	8
+#endif
 	call \func
 	call \func
 	.endm
 	.endm
 
 
@@ -509,7 +511,9 @@ ENTRY(common_interrupt)
 	/* 0(%rsp): oldrsp-ARGOFFSET */
 	/* 0(%rsp): oldrsp-ARGOFFSET */
 ret_from_intr:
 ret_from_intr:
 	popq  %rdi
 	popq  %rdi
+#ifndef CONFIG_DEBUG_INFO
 	CFI_ADJUST_CFA_OFFSET	-8
 	CFI_ADJUST_CFA_OFFSET	-8
+#endif
 	cli	
 	cli	
 	decl %gs:pda_irqcount
 	decl %gs:pda_irqcount
 #ifdef CONFIG_DEBUG_INFO
 #ifdef CONFIG_DEBUG_INFO