ia64/xen-unstable

annotate xen/arch/x86/compat.c @ 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 ee395551208d
children
rev   line source
kaf24@9896 1 /******************************************************************************
kaf24@9896 2 * compat.c
kaf24@9896 3 *
kaf24@9896 4 * Implementations of legacy hypercalls. These call through to the new
kaf24@9896 5 * hypercall after doing necessary argument munging.
kaf24@9896 6 */
kaf24@9896 7
kaf24@9896 8 #include <xen/config.h>
kaf24@9896 9 #include <xen/guest_access.h>
kaf24@9896 10 #include <xen/hypercall.h>
kaf24@9896 11
ack@13297 12 #ifndef COMPAT
ack@13297 13 typedef long ret_t;
ack@13297 14 #endif
ack@13297 15
kaf24@9896 16 /* Legacy hypercall (as of 0x00030202). */
ack@13297 17 ret_t do_physdev_op_compat(XEN_GUEST_HANDLE(physdev_op_t) uop)
kaf24@9896 18 {
kaf24@9896 19 struct physdev_op op;
kaf24@9896 20
kaf24@9896 21 if ( unlikely(copy_from_guest(&op, uop, 1) != 0) )
kaf24@9896 22 return -EFAULT;
kaf24@9896 23
ack@13297 24 return do_physdev_op(op.cmd, guest_handle_from_ptr(&uop.p->u, void));
kaf24@9896 25 }
kaf24@9896 26
ack@13297 27 #ifndef COMPAT
ack@13297 28
kaf24@9896 29 /* Legacy hypercall (as of 0x00030202). */
kaf24@9896 30 long do_event_channel_op_compat(XEN_GUEST_HANDLE(evtchn_op_t) uop)
kaf24@9896 31 {
kaf24@9896 32 struct evtchn_op op;
kaf24@9896 33
kaf24@9896 34 if ( unlikely(copy_from_guest(&op, uop, 1) != 0) )
kaf24@9896 35 return -EFAULT;
kaf24@9896 36
ack@13297 37 return do_event_channel_op(op.cmd, guest_handle_from_ptr(&uop.p->u, void));
kaf24@9896 38 }
ack@13297 39
ack@13297 40 #endif