summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndi Kleen <ak@suse.de>2006-10-05 18:47:22 +0200
committerAndi Kleen <andi@basil.nowhere.org>2006-10-05 18:47:22 +0200
commit7d0b0e8ddbdda58a852ccff010c0339a38552cc7 (patch)
treeb3bbe80bbcc38f5ee07b6b235f4bf1fd210e5efe /arch
parent0a5ace2ab08d45cd78d7ef0067cdcd5c812ac54f (diff)
downloadop-kernel-dev-7d0b0e8ddbdda58a852ccff010c0339a38552cc7.zip
op-kernel-dev-7d0b0e8ddbdda58a852ccff010c0339a38552cc7.tar.gz
[PATCH] x86-64: Annotate interrupt frame backlink in interrupt handlers
Add correct CFI annotation to the backlink on top of the interrupt stack. Signed-off-by: Andi Kleen <ak@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86_64/kernel/entry.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86_64/kernel/entry.S b/arch/x86_64/kernel/entry.S
index ab9b2c4..38a7b2d 100644
--- a/arch/x86_64/kernel/entry.S
+++ b/arch/x86_64/kernel/entry.S
@@ -535,6 +535,8 @@ END(stub_rt_sigreturn)
1: incl %gs:pda_irqcount
cmoveq %gs:pda_irqstackptr,%rsp
push %rbp # backlink for old unwinder
+ CFI_ADJUST_CFA_OFFSET 8
+ CFI_REL_OFFSET rbp,0
/*
* We entered an interrupt context - irqs are off:
*/
@@ -1174,6 +1176,7 @@ ENTRY(call_softirq)
incl %gs:pda_irqcount
cmove %gs:pda_irqstackptr,%rsp
push %rbp # backlink for old unwinder
+ CFI_ADJUST_CFA_OFFSET 8
call __do_softirq
leaveq
CFI_DEF_CFA_REGISTER rsp
OpenPOWER on IntegriCloud