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) 2012 Citrix Systems
16 *
17 */
18
19 #ifndef XC_CORE_ARM_H
20 #define XC_CORE_ARM_H
21
22 #define ELF_ARCH_DATA ELFDATA2LSB
23 #define ELF_ARCH_MACHINE EM_ARM
24
25 struct xc_core_arch_context {
26 /* nothing */
27 };
28
29 #define xc_core_arch_context_init(arch_ctxt) do {} while (0)
30 #define xc_core_arch_context_free(arch_ctxt) do {} while (0)
31 #define xc_core_arch_context_get(arch_ctxt, ctxt, xch, domid) \
32 (0)
33 #define xc_core_arch_context_dump(xch, arch_ctxt, args, dump_rtn) (0)
34
35 int
36 xc_core_arch_gpfn_may_present(struct xc_core_arch_context *arch_ctxt,
37 unsigned long pfn);
38 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)39 xc_core_arch_context_get_shdr(xc_interface *xch,
40 struct xc_core_arch_context *arch_ctxt,
41 struct xc_core_section_headers *sheaders,
42 struct xc_core_strtab *strtab,
43 uint64_t *filesz, uint64_t offset)
44 {
45 *filesz = 0;
46 return 0;
47 }
48
49 #endif /* XC_CORE_ARM_H */
50
51 /*
52 * Local variables:
53 * mode: C
54 * c-file-style: "BSD"
55 * c-basic-offset: 4
56 * tab-width: 4
57 * indent-tabs-mode: nil
58 * End:
59 */
60