source: trunk/packages/xen-3.1/xen-3.1/xen/common/compat/schedule.c @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 1.0 KB
Line 
1/****************************************************************************
2 * schedule.c
3 *
4 */
5
6#include <compat/sched.h>
7
8#define COMPAT
9#define ret_t int
10
11#define do_sched_op compat_sched_op
12
13#define xen_sched_shutdown sched_shutdown
14CHECK_sched_shutdown;
15#undef xen_sched_shutdown
16
17#define xen_sched_remote_shutdown sched_remote_shutdown
18CHECK_sched_remote_shutdown;
19#undef xen_sched_remote_shutdown
20
21static int compat_poll(struct compat_sched_poll *compat)
22{
23    struct sched_poll native;
24
25#define XLAT_sched_poll_HNDL_ports(_d_, _s_) \
26    guest_from_compat_handle((_d_)->ports, (_s_)->ports)
27    XLAT_sched_poll(&native, compat);
28#undef XLAT_sched_poll_HNDL_ports
29
30    return do_poll(&native);
31}
32
33#define do_poll compat_poll
34#define sched_poll compat_sched_poll
35
36#include "../schedule.c"
37
38int compat_set_timer_op(u32 lo, s32 hi)
39{
40    return do_set_timer_op(((s64)hi << 32) | lo);
41}
42
43/*
44 * Local variables:
45 * mode: C
46 * c-set-style: "BSD"
47 * c-basic-offset: 4
48 * tab-width: 4
49 * indent-tabs-mode: nil
50 * End:
51 */
Note: See TracBrowser for help on using the repository browser.