aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-i386/xen/hypercall.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-i386/xen/hypercall.h')
-rw-r--r--include/asm-i386/xen/hypercall.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asm-i386/xen/hypercall.h b/include/asm-i386/xen/hypercall.h
index 53912859708b..bc0ee7d961ca 100644
--- a/include/asm-i386/xen/hypercall.h
+++ b/include/asm-i386/xen/hypercall.h
@@ -392,4 +392,22 @@ MULTI_mmuext_op(struct multicall_entry *mcl, struct mmuext_op *op, int count,
392 mcl->args[2] = (unsigned long)success_count; 392 mcl->args[2] = (unsigned long)success_count;
393 mcl->args[3] = domid; 393 mcl->args[3] = domid;
394} 394}
395
396static inline void
397MULTI_set_gdt(struct multicall_entry *mcl, unsigned long *frames, int entries)
398{
399 mcl->op = __HYPERVISOR_set_gdt;
400 mcl->args[0] = (unsigned long)frames;
401 mcl->args[1] = entries;
402}
403
404static inline void
405MULTI_stack_switch(struct multicall_entry *mcl,
406 unsigned long ss, unsigned long esp)
407{
408 mcl->op = __HYPERVISOR_stack_switch;
409 mcl->args[0] = ss;
410 mcl->args[1] = esp;
411}
412
395#endif /* __HYPERCALL_H__ */ 413#endif /* __HYPERCALL_H__ */