debuggers.hg

view extras/mini-os/include/hypervisor.h @ 0:7d21f7218375

Exact replica of unstable on 051908 + README-this
author Mukesh Rathor
date Mon May 19 15:34:57 2008 -0700 (2008-05-19)
parents
children 5c0bf00e371d
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 <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 <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__ */