|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] Make strace happy with xeno64.,
Li, Xin B <=
|
|
|
|
|