source: trunk/packages/xen-3.1/xen-3.1/tools/libxc/xc_core_powerpc.h @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 1.8 KB
Line 
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 */
20
21#ifndef XC_CORE_POWERPC_H
22#define XC_CORE_POWERPC_H
23
24#define ELF_ARCH_DATA           ELFDATA2MSB
25#define ELF_ARCH_MACHINE        EM_PPC64
26
27struct xc_core_arch_context {
28    /* nothing */
29};
30
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)
36
37static inline int
38xc_core_arch_context_get_shdr(struct xc_core_arch_context *arch_ctxt, 
39                              struct xc_core_section_headers *sheaders,
40                              struct xc_core_strtab *strtab,
41                              uint64_t *filesz, uint64_t offset)
42{
43    *filesz = 0;
44    return 0;
45}
46
47#endif /* XC_CORE_POWERPC_H */
48
49/*
50 * Local variables:
51 * mode: C
52 * c-set-style: "BSD"
53 * c-basic-offset: 4
54 * tab-width: 4
55 * indent-tabs-mode: nil
56 * End:
57 */
Note: See TracBrowser for help on using the repository browser.