WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] linux/x86-64: fix unwind annotations

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/x86-64: fix unwind annotations
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 24 Oct 2008 12:17:41 +0100
Delivery-date: Fri, 24 Oct 2008 04:17:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
As usual, written and tested on 2.6.27.3 and made apply to the 2.6.18
tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- head-2008-10-24.orig/arch/x86_64/kernel/entry-xen.S 2008-10-24 
11:32:19.000000000 +0200
+++ head-2008-10-24/arch/x86_64/kernel/entry-xen.S      2008-10-24 
11:33:13.000000000 +0200
@@ -121,9 +121,9 @@ NMI_MASK = 0x80000000
        .macro  CFI_DEFAULT_STACK start=1,adj=0
        .if \start
        CFI_STARTPROC   simple
-       CFI_DEF_CFA     rsp,SS+8-(\adj*ARGOFFSET)
+       CFI_DEF_CFA     rsp,SS+8 - \adj*ARGOFFSET
        .else
-       CFI_DEF_CFA_OFFSET SS+8-(\adj*ARGOFFSET)
+       CFI_DEF_CFA_OFFSET SS+8 - \adj*ARGOFFSET
        .endif
        .if \adj == 0
        CFI_REL_OFFSET  r15,R15
@@ -133,20 +133,20 @@ NMI_MASK = 0x80000000
        CFI_REL_OFFSET  rbp,RBP
        CFI_REL_OFFSET  rbx,RBX
        .endif
-       CFI_REL_OFFSET  r11,R11
-       CFI_REL_OFFSET  r10,R10
-       CFI_REL_OFFSET  r9,R9
-       CFI_REL_OFFSET  r8,R8
-       CFI_REL_OFFSET  rax,RAX
-       CFI_REL_OFFSET  rcx,RCX
-       CFI_REL_OFFSET  rdx,RDX
-       CFI_REL_OFFSET  rsi,RSI
-       CFI_REL_OFFSET  rdi,RDI
-       CFI_REL_OFFSET  rip,RIP
-       /*CFI_REL_OFFSET        cs,CS*/
-       /*CFI_REL_OFFSET        rflags,EFLAGS*/
-       CFI_REL_OFFSET  rsp,RSP
-       /*CFI_REL_OFFSET        ss,SS*/
+       CFI_REL_OFFSET  r11,R11 - \adj*ARGOFFSET
+       CFI_REL_OFFSET  r10,R10 - \adj*ARGOFFSET
+       CFI_REL_OFFSET  r9,R9 - \adj*ARGOFFSET
+       CFI_REL_OFFSET  r8,R8 - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rax,RAX - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rcx,RCX - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rdx,RDX - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rsi,RSI - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rdi,RDI - \adj*ARGOFFSET
+       CFI_REL_OFFSET  rip,RIP - \adj*ARGOFFSET
+       /*CFI_REL_OFFSET        cs,CS - \adj*ARGOFFSET*/
+       /*CFI_REL_OFFSET        rflags,EFLAGS - \adj*ARGOFFSET*/
+       CFI_REL_OFFSET  rsp,RSP - \adj*ARGOFFSET
+       /*CFI_REL_OFFSET        ss,SS - \adj*ARGOFFSET*/
        .endm
 
         /*




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/x86-64: fix unwind annotations, Jan Beulich <=