1 /*
2 * This library is free software; you can redistribute it and/or
3 * modify it under the terms of the GNU Lesser General Public
4 * License as published by the Free Software Foundation; either
5 * version 2.1 of the License, or (at your option) any later version.
6 *
7 * This library 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 GNU
10 * Lesser General Public License for more details.
11 *
12 * You should have received a copy of the GNU Lesser General Public
13 * License along with this library; If not, see <http://www.gnu.org/licenses/>.
14 *
15 * Copyright (c) 2007 Isaku Yamahata <yamahata at valinux co jp>
16 * VA Linux Systems Japan K.K.
17 *
18 */
19
20 #ifndef XC_CORE_X86_H
21 #define XC_CORE_X86_H
22
23 #define ELF_ARCH_DATA ELFDATA2LSB
24 #define ELF_ARCH_MACHINE (dinfo->guest_width == 8 ? EM_X86_64 : EM_386)
25
26 struct xc_core_arch_context {
27 /* nothing */
28 };
29
30 #define xc_core_arch_context_init(arch_ctxt) do {} while (0)
31 #define xc_core_arch_context_free(arch_ctxt) do {} while (0)
32 #define xc_core_arch_context_get(arch_ctxt, ctxt, xch, domid) \
33 (0)
34 #define xc_core_arch_context_dump(xch, arch_ctxt, args, dump_rtn) (0)
35
36 int
37 xc_core_arch_gpfn_may_present(struct xc_core_arch_context *arch_ctxt,
38 unsigned long pfn);
39 static inline int
xc_core_arch_context_get_shdr(xc_interface * xch,struct xc_core_arch_context * arch_ctxt,struct xc_core_section_headers * sheaders,struct xc_core_strtab * strtab,uint64_t * filesz,uint64_t offset)40 xc_core_arch_context_get_shdr(xc_interface *xch,
41 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 }
49
50 #endif /* XC_CORE_X86_H */
51
52 /*
53 * Local variables:
54 * mode: C
55 * c-file-style: "BSD"
56 * c-basic-offset: 4
57 * tab-width: 4
58 * indent-tabs-mode: nil
59 * End:
60 */
61