debuggers.hg

view tools/libxc/xc_core_x86.h @ 21067:b4a1832a916f

Update Xen version to 4.0.0-rc6
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 09 18:18:05 2010 +0000 (2010-03-09)
parents 3e4a70d6c50a
children 3ffdb094c2c0 779c0ef9682c
line source
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program; if not, write to the Free Software
14 * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15 *
16 * Copyright (c) 2007 Isaku Yamahata <yamahata at valinux co jp>
17 * VA Linux Systems Japan K.K.
18 *
19 */
21 #ifndef XC_CORE_X86_H
22 #define XC_CORE_X86_H
24 #define ELF_ARCH_DATA ELFDATA2LSB
25 #define ELF_ARCH_MACHINE (dinfo->guest_width == 8 ? EM_X86_64 : EM_386)
27 struct xc_core_arch_context {
28 /* nothing */
29 };
31 #define xc_core_arch_context_init(arch_ctxt) do {} while (0)
32 #define xc_core_arch_context_free(arch_ctxt) do {} while (0)
33 #define xc_core_arch_context_get(arch_ctxt, ctxt, xc_handle, domid) \
34 (0)
35 #define xc_core_arch_context_dump(arch_ctxt, args, dump_rtn) (0)
37 int
38 xc_core_arch_gpfn_may_present(struct xc_core_arch_context *arch_ctxt,
39 unsigned long pfn);
40 static inline int
41 xc_core_arch_context_get_shdr(struct xc_core_arch_context *arch_ctxt,
42 struct xc_core_section_headers *sheaders,
43 struct xc_core_strtab *strtab,
44 uint64_t *filesz, uint64_t offset)
45 {
46 *filesz = 0;
47 return 0;
48 }
50 #endif /* XC_CORE_X86_H */
52 /*
53 * Local variables:
54 * mode: C
55 * c-set-style: "BSD"
56 * c-basic-offset: 4
57 * tab-width: 4
58 * indent-tabs-mode: nil
59 * End:
60 */