ia64/xen-unstable

view extras/mini-os/include/hypervisor.h @ 19836:d9890e67d2b7

tools: add SHAREDIR to buildmakevars2file

c/s 19818 dropped SHAREDIR from xen/util/path.py, which broke the "xm
new" command. This patch adds SHAREDIR back to the new
buildmakevars2file-closure function.

Signed-off-by: Ryan O'Connor <rjo@cs.ubc.ca>
author Keir Fraser <keir.fraser@citrix.com>
date Thu Jun 25 13:05:10 2009 +0100 (2009-06-25)
parents 707e10c9a487
children
line source
1 /******************************************************************************
2 * hypervisor.h
3 *
4 * Hypervisor handling.
5 *
6 *
7 * Copyright (c) 2002, K A Fraser
8 * Copyright (c) 2005, Grzegorz Milos
9 * Updates: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
10 * Updates: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> for ia64
11 */
13 #ifndef _HYPERVISOR_H_
14 #define _HYPERVISOR_H_
16 #include <mini-os/types.h>
17 #include <xen/xen.h>
18 #if defined(__i386__)
19 #include <hypercall-x86_32.h>
20 #elif defined(__x86_64__)
21 #include <hypercall-x86_64.h>
22 #elif defined(__ia64__)
23 #include <hypercall-ia64.h>
24 #else
25 #error "Unsupported architecture"
26 #endif
27 #include <mini-os/traps.h>
29 /*
30 * a placeholder for the start of day information passed up from the hypervisor
31 */
32 union start_info_union
33 {
34 start_info_t start_info;
35 char padding[512];
36 };
37 extern union start_info_union start_info_union;
38 #define start_info (start_info_union.start_info)
40 /* hypervisor.c */
41 void force_evtchn_callback(void);
42 void do_hypervisor_callback(struct pt_regs *regs);
43 void mask_evtchn(u32 port);
44 void unmask_evtchn(u32 port);
45 void clear_evtchn(u32 port);
47 extern int in_callback;
49 #endif /* __HYPERVISOR_H__ */