| 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_X86_H |
|---|
| 22 | #define XC_CORE_X86_H |
|---|
| 23 | |
|---|
| 24 | #if defined(__i386__) || defined(__x86_64__) |
|---|
| 25 | #define ELF_ARCH_DATA ELFDATA2LSB |
|---|
| 26 | #if defined (__i386__) |
|---|
| 27 | # define ELF_ARCH_MACHINE EM_386 |
|---|
| 28 | #else |
|---|
| 29 | # define ELF_ARCH_MACHINE EM_X86_64 |
|---|
| 30 | #endif |
|---|
| 31 | #endif /* __i386__ or __x86_64__ */ |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | struct xc_core_arch_context { |
|---|
| 35 | /* nothing */ |
|---|
| 36 | }; |
|---|
| 37 | |
|---|
| 38 | #define xc_core_arch_context_init(arch_ctxt) do {} while (0) |
|---|
| 39 | #define xc_core_arch_context_free(arch_ctxt) do {} while (0) |
|---|
| 40 | #define xc_core_arch_context_get(arch_ctxt, ctxt, xc_handle, domid) \ |
|---|
| 41 | (0) |
|---|
| 42 | #define xc_core_arch_context_dump(arch_ctxt, args, dump_rtn) (0) |
|---|
| 43 | |
|---|
| 44 | static inline int |
|---|
| 45 | xc_core_arch_context_get_shdr(struct xc_core_arch_context *arch_ctxt, |
|---|
| 46 | struct xc_core_section_headers *sheaders, |
|---|
| 47 | struct xc_core_strtab *strtab, |
|---|
| 48 | uint64_t *filesz, uint64_t offset) |
|---|
| 49 | { |
|---|
| 50 | *filesz = 0; |
|---|
| 51 | return 0; |
|---|
| 52 | } |
|---|
| 53 | |
|---|
| 54 | #endif /* XC_CORE_X86_H */ |
|---|
| 55 | |
|---|
| 56 | /* |
|---|
| 57 | * Local variables: |
|---|
| 58 | * mode: C |
|---|
| 59 | * c-set-style: "BSD" |
|---|
| 60 | * c-basic-offset: 4 |
|---|
| 61 | * tab-width: 4 |
|---|
| 62 | * indent-tabs-mode: nil |
|---|
| 63 | * End: |
|---|
| 64 | */ |
|---|