x86: introduce native_set_pte_atomic() on 64-bit too
[wrt350n-kernel.git] / include / xen / interface / elfnote.h
bloba64d3df5bd95abe9ab76a8d4d93a7e56d7e44d2b
1 /******************************************************************************
2 * elfnote.h
4 * Definitions used for the Xen ELF notes.
6 * Copyright (c) 2006, Ian Campbell, XenSource Ltd.
7 */
9 #ifndef __XEN_PUBLIC_ELFNOTE_H__
10 #define __XEN_PUBLIC_ELFNOTE_H__
13 * The notes should live in a SHT_NOTE segment and have "Xen" in the
14 * name field.
16 * Numeric types are either 4 or 8 bytes depending on the content of
17 * the desc field.
19 * LEGACY indicated the fields in the legacy __xen_guest string which
20 * this a note type replaces.
24 * NAME=VALUE pair (string).
26 * LEGACY: FEATURES and PAE
28 #define XEN_ELFNOTE_INFO 0
31 * The virtual address of the entry point (numeric).
33 * LEGACY: VIRT_ENTRY
35 #define XEN_ELFNOTE_ENTRY 1
37 /* The virtual address of the hypercall transfer page (numeric).
39 * LEGACY: HYPERCALL_PAGE. (n.b. legacy value is a physical page
40 * number not a virtual address)
42 #define XEN_ELFNOTE_HYPERCALL_PAGE 2
44 /* The virtual address where the kernel image should be mapped (numeric).
46 * Defaults to 0.
48 * LEGACY: VIRT_BASE
50 #define XEN_ELFNOTE_VIRT_BASE 3
53 * The offset of the ELF paddr field from the acutal required
54 * psuedo-physical address (numeric).
56 * This is used to maintain backwards compatibility with older kernels
57 * which wrote __PAGE_OFFSET into that field. This field defaults to 0
58 * if not present.
60 * LEGACY: ELF_PADDR_OFFSET. (n.b. legacy default is VIRT_BASE)
62 #define XEN_ELFNOTE_PADDR_OFFSET 4
65 * The version of Xen that we work with (string).
67 * LEGACY: XEN_VER
69 #define XEN_ELFNOTE_XEN_VERSION 5
72 * The name of the guest operating system (string).
74 * LEGACY: GUEST_OS
76 #define XEN_ELFNOTE_GUEST_OS 6
79 * The version of the guest operating system (string).
81 * LEGACY: GUEST_VER
83 #define XEN_ELFNOTE_GUEST_VERSION 7
86 * The loader type (string).
88 * LEGACY: LOADER
90 #define XEN_ELFNOTE_LOADER 8
93 * The kernel supports PAE (x86/32 only, string = "yes" or "no").
95 * LEGACY: PAE (n.b. The legacy interface included a provision to
96 * indicate 'extended-cr3' support allowing L3 page tables to be
97 * placed above 4G. It is assumed that any kernel new enough to use
98 * these ELF notes will include this and therefore "yes" here is
99 * equivalent to "yes[entended-cr3]" in the __xen_guest interface.
101 #define XEN_ELFNOTE_PAE_MODE 9
104 * The features supported/required by this kernel (string).
106 * The string must consist of a list of feature names (as given in
107 * features.h, without the "XENFEAT_" prefix) separated by '|'
108 * characters. If a feature is required for the kernel to function
109 * then the feature name must be preceded by a '!' character.
111 * LEGACY: FEATURES
113 #define XEN_ELFNOTE_FEATURES 10
116 * The kernel requires the symbol table to be loaded (string = "yes" or "no")
117 * LEGACY: BSD_SYMTAB (n.b. The legacy treated the presence or absence
118 * of this string as a boolean flag rather than requiring "yes" or
119 * "no".
121 #define XEN_ELFNOTE_BSD_SYMTAB 11
123 #endif /* __XEN_PUBLIC_ELFNOTE_H__ */
126 * Local variables:
127 * mode: C
128 * c-set-style: "BSD"
129 * c-basic-offset: 4
130 * tab-width: 4
131 * indent-tabs-mode: nil
132 * End: