debuggers.hg

view xen/include/asm-ia64/config.h @ 17972:cddaea5d6528

[IA64] removed an unused header file.

removed an unused header file and MAX_NUMNODES were defined in
two place. so removed unnecessary MAX_NUMNODES definitions.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Isaku Yamahata <yamahata@valinux.co.jp>
date Wed Jun 11 15:38:00 2008 +0900 (2008-06-11)
parents 8a0415fac759
children 6f841a2545e0
line source
1 #ifndef _IA64_CONFIG_H_
2 #define _IA64_CONFIG_H_
4 #undef DEBUG_PFMON
6 // manufactured from component pieces
8 // defined in linux/arch/ia64/defconfig
9 #define CONFIG_IA64_GENERIC
10 #define CONFIG_HZ 32
12 #define CONFIG_IA64_L1_CACHE_SHIFT 7
13 // needed by include/asm-ia64/page.h
14 #define CONFIG_IA64_PAGE_SIZE_16KB // 4KB doesn't work?!?
15 #define CONFIG_IA64_GRANULE_16MB
17 // this needs to be on to run on system with large memory hole
18 #define CONFIG_VIRTUAL_FRAME_TABLE
20 #define CONFIG_EFI
21 #define CONFIG_EFI_PCDP
22 #define CONFIG_SERIAL_SGI_L1_CONSOLE
24 #define CONFIG_XEN_SMP
26 #ifdef CONFIG_XEN_SMP
27 #define CONFIG_SMP 1
28 #define CONFIG_HOTPLUG_CPU 1
29 #ifdef MAX_PHYS_CPUS
30 #define NR_CPUS MAX_PHYS_CPUS
31 #else
32 #define NR_CPUS 64
33 #endif
34 #define CONFIG_NUMA
35 #define CONFIG_ACPI_NUMA
36 #define NODES_SHIFT 8 /* linux/asm/numnodes.h */
37 #define NR_NODE_MEMBLKS (MAX_NUMNODES*2) /* linux-xen/asm/acpi.h */
38 #else
39 #undef CONFIG_SMP
40 #define NR_CPUS 1
41 #endif
42 #define CONFIG_NR_CPUS NR_CPUS
44 #define CONFIG_IOSAPIC
45 #define supervisor_mode_kernel (0)
47 #define CONFIG_DMA_BITSIZE 32
49 #define PADDR_BITS 48
51 /* If PERFC is used, include privop maps. */
52 #ifdef PERF_COUNTERS
53 #define CONFIG_PRIVOP_ADDRS
54 #define PRIVOP_COUNT_NADDRS 30
55 #endif
57 #define CONFIG_VGA 1
60 #define NR_hypercalls 64
62 /* PV domains use this value for priv. level 0 emulation */
63 #define CONFIG_CPL0_EMUL 1
65 #ifndef __ASSEMBLY__
67 // can't find where this typedef was before?!?
68 // needed by include/asm-ia64/processor.h (and other places)
69 typedef int pid_t;
71 // now needed for xen/include/mm.h
72 typedef unsigned long paddr_t;
73 #define INVALID_PADDR (~0UL)
74 // from include/linux/kernel.h
75 #define ALIGN(x,a) (((x)+(a)-1)&~((a)-1))
77 //////////////////////////////////////
79 #define FASTCALL(x) x // see linux/include/linux/linkage.h
80 #define fastcall // " "
82 #define watchdog_disable() ((void)0)
83 #define watchdog_enable() ((void)0)
84 // from linux/include/linux/types.h
85 #define CLEAR_BITMAP(name,bits) \
86 memset(name, 0, BITS_TO_LONGS(bits)*sizeof(unsigned long))
88 // FIXME?: x86-ism used in xen/mm.h
89 #define LOCK_PREFIX
91 extern unsigned long xenheap_phys_end;
92 extern unsigned long total_pages;
93 extern unsigned long xen_pstart;
94 extern unsigned long xenheap_size;
96 extern int running_on_sim;
98 // from linux/include/linux/mm.h
99 extern struct page_info *mem_map;
101 // xen/include/asm/config.h
102 extern char _end[]; /* standard ELF symbol */
104 // linux/include/linux/compiler.h
105 //#define __kernel
106 //#define __safe
107 #define __force
108 #define __chk_user_ptr(x) (void)0
109 //#define __chk_io_ptr(x) (void)0
110 //#define __builtin_warning(x, y...) (1)
111 //#define __acquires(x)
112 //#define __releases(x)
113 //#define __acquire(x) (void)0
114 //#define __release(x) (void)0
115 //#define __cond_lock(x) (x)
116 //#define __must_check
117 #define __deprecated
119 // xen/include/asm/config.h
120 //#define HZ 1000
121 // FIXME SMP: leave SMP for a later time
122 ///////////////////////////////////////////////////////////////
123 // xen/include/asm/config.h
124 // Natural boundary upon TR size to define xenheap space
125 #define XENHEAP_DEFAULT_MB (1 << (KERNEL_TR_PAGE_SHIFT - 20))
126 #define XENHEAP_DEFAULT_SIZE (1 << KERNEL_TR_PAGE_SHIFT)
127 #define ELFSIZE 64
129 ///////////////////////////////////////////////////////////////
131 // get rid of difficult circular include dependency
132 #define CMPXCHG_BUGCHECK(v)
133 #define CMPXCHG_BUGCHECK_DECL
135 // from include/asm-ia64/smp.h
136 #define get_cpu() smp_processor_id()
137 #define put_cpu() do {} while(0)
138 #define put_cpu_no_resched() do{} while (0)
140 // needed for common/dom0_ops.c until hyperthreading is supported
141 #ifdef CONFIG_SMP
142 extern int smp_num_siblings;
143 #else
144 #define smp_num_siblings 1
145 #endif
147 // function calls; see decl in xen/include/xen/sched.h
148 #undef free_task_struct
149 #undef alloc_task_struct
150 #define get_thread_info(v) alloc_thread_info(v)
152 // avoid redefining task_t in asm/thread_info.h
153 #define task_t struct domain
155 // avoid redefining task_struct in asm/current.h
156 #define task_struct vcpu
158 #include <xen/cache.h>
159 #ifndef CONFIG_SMP
160 #define __cacheline_aligned_in_smp
161 #else
162 #define __cacheline_aligned_in_smp __cacheline_aligned
163 #endif
165 #define ____cacheline_aligned __attribute__((__aligned__(SMP_CACHE_BYTES)))
166 #ifndef CONFIG_SMP
167 #define ____cacheline_aligned_in_smp
168 #else
169 #define ____cacheline_aligned_in_smp ____cacheline_aligned
170 #endif
172 #define CONFIG_PERFMON
174 #ifndef __ASSEMBLY__
175 #include "asm/types.h" // for u64
176 #include "linux/linkage.h" // for asmlinkage which is used by
177 // xen/include/acpi/acpixf.h
178 #endif
180 // warning: unless search_extable is declared, the return value gets
181 // truncated to 32-bits, causing a very strange error in privop handling
182 struct exception_table_entry;
184 const struct exception_table_entry *
185 search_extable(const struct exception_table_entry *first,
186 const struct exception_table_entry *last,
187 unsigned long value);
188 void sort_extable(struct exception_table_entry *start,
189 struct exception_table_entry *finish);
190 void sort_main_extable(void);
192 #define find_first_set_bit(x) (ffs(x)-1) // FIXME: Is this right???
194 // see drivers/char/console.c
195 #define OPT_CONSOLE_STR "com1"
197 #define __nocast
199 // see include/asm-x86/atomic.h (different from standard linux)
200 #define _atomic_set(v,i) (((v).counter) = (i))
201 #define _atomic_read(v) ((v).counter)
202 #define atomic_compareandswap(old, new, v) ((atomic_t){ cmpxchg(v, _atomic_read(old), _atomic_read(new)) })
204 // Deprivated linux inf and put here for short time compatibility
205 #define kmalloc(s, t) xmalloc_bytes((s))
206 #define kfree(s) xfree((s))
207 #define kzalloc(size, flags) \
208 ({ \
209 unsigned char *mem; \
210 mem = (unsigned char *)xmalloc_bytes(size); \
211 if (mem) \
212 memset(mem, 0, size); \
213 (void *)mem; \
214 })
215 #define kcalloc(n, size, flags) kzalloc(n * size, flags)
216 #define alloc_bootmem_node(pg, size) xmalloc_bytes(size)
218 // see common/keyhandler.c
219 #define nop() asm volatile ("nop 0")
221 // from include/linux/preempt.h (needs including from interrupt.h or smp.h)
222 #define preempt_enable() do { } while (0)
223 #define preempt_disable() do { } while (0)
225 // needed for include/xen/linuxtime.h
226 typedef s64 time_t;
227 typedef s64 suseconds_t;
229 // needed for include/linux/jiffies.h
230 typedef long clock_t;
232 // from include/linux/kernel.h, needed by jiffies.h
233 #define typecheck(type,x) \
234 ({ type __dummy; \
235 typeof(x) __dummy2; \
236 (void)(&__dummy == &__dummy2); \
237 1; \
238 })
240 // from include/linux/timex.h, needed by arch/ia64/time.c
241 #define TIME_SOURCE_CPU 0
243 // used in common code
244 #define softirq_pending(cpu) (cpu_data(cpu)->softirq_pending)
246 // dup'ed from signal.h to avoid changes to includes
247 #define SA_SHIRQ 0x04000000
248 #define SA_INTERRUPT 0x20000000
250 // needed for setup.c
251 extern unsigned long loops_per_jiffy;
252 extern char saved_command_line[];
253 struct screen_info { };
254 #define seq_printf(a,b...) printk(b)
255 //#define CONFIG_BLK_DEV_INITRD // needed to reserve memory for domain0
257 #define CONFIG_SHADOW 1
259 // xen/include/asm/config.h
260 /******************************************************************************
261 * config.h
262 *
263 * A Linux-style configuration list.
264 */
266 #ifndef __XEN_IA64_CONFIG_H__
267 #define __XEN_IA64_CONFIG_H__
269 #undef CONFIG_X86
271 #define CONFIG_MCKINLEY
273 #undef CONFIG_X86_LOCAL_APIC
274 #undef CONFIG_X86_IO_APIC
275 #undef CONFIG_X86_L1_CACHE_SHIFT
277 //#ifndef CONFIG_IA64_HP_SIM
278 // looks like this is hard to turn off for Xen
279 #define CONFIG_ACPI 1
280 #define CONFIG_ACPI_BOOT 1
281 //#endif
283 #define CONFIG_XEN_ATTENTION_KEY 1
284 #endif /* __ASSEMBLY__ */
285 #endif /* __XEN_IA64_CONFIG_H__ */
287 /* Allow .serialize.data/instruction in asm files.
288 Old as doesn't handle this. */
289 #define HAVE_SERIALIZE_DIRECTIVE
291 /* Define CONFIG_PRIVIFY to support privified OS (deprecated). */
292 #undef CONFIG_PRIVIFY
294 #define CONFIG_XENCOMM_MARK_DIRTY 1
296 #define ARCH_CRASH_SAVE_VMCOREINFO
298 #endif /* _IA64_CONFIG_H_ */