aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/x86_64/entry.S
diff options
context:
space:
mode:
authorKeir Fraser <keir@xensource.com>2007-10-24 17:15:54 +0100
committerKeir Fraser <keir@xensource.com>2007-10-24 17:15:54 +0100
commitf0baaccd758bdc9c4c2d108ae0c2d64d380abc95 (patch)
tree40bba5976bce57b4c05d098fa7da43c9133564a2 /xen/arch/x86/x86_64/entry.S
parentcd75d47348b45ff62e6234b993c1880de8277a06 (diff)
downloadxen-f0baaccd758bdc9c4c2d108ae0c2d64d380abc95.tar.gz
xen-f0baaccd758bdc9c4c2d108ae0c2d64d380abc95.tar.bz2
xen-f0baaccd758bdc9c4c2d108ae0c2d64d380abc95.zip
x86: Remove CALLBACKTYPE_sysexit.
Looking at the Linux patch as an example, it adds more code and complexity than it removes, for no obvious performance benefit. Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'xen/arch/x86/x86_64/entry.S')
-rw-r--r--xen/arch/x86/x86_64/entry.S6
1 files changed, 2 insertions, 4 deletions
diff --git a/xen/arch/x86/x86_64/entry.S b/xen/arch/x86/x86_64/entry.S
index 39feb5fd9a..34c9c2a923 100644
--- a/xen/arch/x86/x86_64/entry.S
+++ b/xen/arch/x86/x86_64/entry.S
@@ -264,11 +264,9 @@ sysenter_eflags_saved:
movl $TRAP_syscall,4(%rsp)
SAVE_ALL
GET_CURRENT(%rbx)
- movq VCPU_sysexit_addr(%rbx),%rax
- movzwl VCPU_sysexit_sel(%rbx),%edx
cmpb $0,VCPU_sysenter_disables_events(%rbx)
- movq %rax,UREGS_rip(%rsp)
- movl %edx,UREGS_cs(%rsp)
+ movq $0,UREGS_rip(%rsp) /* null rip */
+ movl $3,UREGS_cs(%rsp) /* ring 3 null cs */
movq VCPU_sysenter_addr(%rbx),%rax
setne %cl
leaq VCPU_trap_bounce(%rbx),%rdx