diff options
Diffstat (limited to 'xenolinux-2.4.25-sparse/include')
-rw-r--r-- | xenolinux-2.4.25-sparse/include/asm-xeno/hypervisor.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/xenolinux-2.4.25-sparse/include/asm-xeno/hypervisor.h b/xenolinux-2.4.25-sparse/include/asm-xeno/hypervisor.h index 18dbe86ec1..e3cb2e0ac7 100644 --- a/xenolinux-2.4.25-sparse/include/asm-xeno/hypervisor.h +++ b/xenolinux-2.4.25-sparse/include/asm-xeno/hypervisor.h @@ -294,14 +294,14 @@ static inline int HYPERVISOR_stop(unsigned long srec) return ret; } -static inline long HYPERVISOR_set_dom_timer(u64 timeout) +static inline long HYPERVISOR_set_timer_op(u64 timeout) { int ret; unsigned long timeout_hi = (unsigned long)(timeout>>32); unsigned long timeout_lo = (unsigned long)timeout; __asm__ __volatile__ ( TRAP_INSTR - : "=a" (ret) : "0" (__HYPERVISOR_set_dom_timer), + : "=a" (ret) : "0" (__HYPERVISOR_set_timer_op), "b" (timeout_hi), "c" (timeout_lo) : "memory" ); return ret; @@ -435,4 +435,15 @@ static inline int HYPERVISOR_update_va_mapping( return ret; } +static inline int HYPERVISOR_xen_version(int cmd) +{ + int ret; + __asm__ __volatile__ ( + TRAP_INSTR + : "=a" (ret) : "0" (__HYPERVISOR_xen_version), + "b" (cmd) : "memory" ); + + return ret; +} + #endif /* __HYPERVISOR_H__ */ |