ia64/xen-unstable

view xen/arch/x86/x86_32/gpr_switch.S @ 19835:edfdeb150f27

Fix buildsystem to detect udev > version 124

udev removed the udevinfo symlink from versions higher than 123 and
xen's build-system could not detect if udev is in place and has the
required version.

Signed-off-by: Marc-A. Dahlhaus <mad@wol.de>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:02:37 2009 +0100 (2009-06-25)
parents 23c4790512db
children
line source
1 /*
2 * GPR context switch between host and guest.
3 * Used by IO-port-access emulation stub.
4 *
5 * Copyright (c) 2006, Novell, Inc.
6 */
8 #include <xen/config.h>
9 #include <asm/asm_defns.h>
11 ENTRY(host_to_guest_gpr_switch)
12 movl (%esp), %ecx
13 movl %eax, (%esp)
14 movl UREGS_edx(%eax), %edx
15 pushl %ebx
16 movl UREGS_ebx(%eax), %ebx
17 pushl %ebp
18 movl UREGS_ebp(%eax), %ebp
19 pushl %esi
20 movl UREGS_esi(%eax), %esi
21 pushl %edi
22 movl UREGS_edi(%eax), %edi
23 pushl $guest_to_host_gpr_switch
24 pushl %ecx
25 movl UREGS_ecx(%eax), %ecx
26 movl UREGS_eax(%eax), %eax
27 ret
29 ENTRY(guest_to_host_gpr_switch)
30 pushl %edx
31 movl 5*4(%esp), %edx
32 movl %eax, UREGS_eax(%edx)
33 popl UREGS_edx(%edx)
34 movl %edi, UREGS_edi(%edx)
35 popl %edi
36 movl %esi, UREGS_esi(%edx)
37 popl %esi
38 movl %ebp, UREGS_ebp(%edx)
39 popl %ebp
40 movl %ebx, UREGS_ebx(%edx)
41 popl %ebx
42 movl %ecx, UREGS_ecx(%edx)
43 popl %ecx
44 ret