[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Make strace happy with xeno64.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.