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] Make strace happy with xeno64.

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] Make strace happy with xeno64.
From: "Li, Xin B" <xin.b.li@xxxxxxxxx>
Date: Fri, 10 Jun 2005 02:50:25 +0800
Delivery-date: Thu, 09 Jun 2005 18:49:39 +0000
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcVtJBkuzvC6lUFsSAKdjnZxSR809g==
Thread-topic: [PATCH] Make strace happy with xeno64.
On x86_64, strace expects CS == 0x33 for 64bit applications and CS ==
0x23 for 32bit applications, or it will complain.
This patch makes strace happy with xeno64.

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/06/09 01:40:43-07:00 xin@xxxxxxxxxxxxxxxxxxxxxx
#   Make strace happy with xeno64.
#   Signed-off-by: Li B Xin <li.b.xin@xxxxxxxxx>
#   Signed-off-by: Jun Nakajima <jun.nakajima@xxxxxxxxx>
#
# linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S
#   2005/06/09 01:40:42-07:00 xin@xxxxxxxxxxxxxxxxxxxxxx +1 -0
#   On x86_64, strace expects CS == 0x33 for 64bit applications and CS
== 0x23 for 32bit applications, or it will complain.
#   We just make strace happy here.
#
diff -Nru a/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S
b/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S
--- a/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S
2005-06-09 01:41:08 -07:00
+++ b/linux-2.6.11-xen-sparse/arch/xen/x86_64/kernel/entry.S
2005-06-09 01:41:08 -07:00
@@ -311,6 +311,7 @@
 tracesys:
        SAVE_REST
        movq $-ENOSYS,RAX(%rsp)
+       andl $0xff,CS(%rsp)
        movq %rsp,%rdi
        call syscall_trace_enter
        LOAD_ARGS ARGOFFSET  /* reload args from stack in case ptrace
changed it */


-Xin

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