/root/src/xen/xen/common/compat/schedule.c
Line | Count | Source (jump to first uncovered line) |
1 | | /**************************************************************************** |
2 | | * schedule.c |
3 | | * |
4 | | */ |
5 | | |
6 | | #include <compat/sched.h> |
7 | | |
8 | | #define COMPAT |
9 | 0 | #define ret_t int |
10 | | |
11 | | #define do_sched_op compat_sched_op |
12 | | |
13 | | #define xen_sched_pin_override sched_pin_override |
14 | | CHECK_sched_pin_override; |
15 | | #undef xen_sched_pin_override |
16 | | |
17 | | #define xen_sched_shutdown sched_shutdown |
18 | | CHECK_sched_shutdown; |
19 | | #undef xen_sched_shutdown |
20 | | |
21 | | #define xen_sched_remote_shutdown sched_remote_shutdown |
22 | | CHECK_sched_remote_shutdown; |
23 | | #undef xen_sched_remote_shutdown |
24 | | |
25 | | static int compat_poll(struct compat_sched_poll *compat) |
26 | 0 | { |
27 | 0 | struct sched_poll native; |
28 | 0 |
|
29 | 0 | #define XLAT_sched_poll_HNDL_ports(_d_, _s_) \ |
30 | 0 | guest_from_compat_handle((_d_)->ports, (_s_)->ports) |
31 | 0 | XLAT_sched_poll(&native, compat); |
32 | 0 | #undef XLAT_sched_poll_HNDL_ports |
33 | 0 |
|
34 | 0 | return do_poll(&native); |
35 | 0 | } |
36 | | |
37 | 0 | #define do_poll compat_poll |
38 | 0 | #define sched_poll compat_sched_poll |
39 | | |
40 | | #include "../schedule.c" |
41 | | |
42 | | int compat_set_timer_op(u32 lo, s32 hi) |
43 | 0 | { |
44 | 0 | return do_set_timer_op(((s64)hi << 32) | lo); |
45 | 0 | } |
46 | | |
47 | | /* |
48 | | * Local variables: |
49 | | * mode: C |
50 | | * c-file-style: "BSD" |
51 | | * c-basic-offset: 4 |
52 | | * tab-width: 4 |
53 | | * indent-tabs-mode: nil |
54 | | * End: |
55 | | */ |