ia64/xen-unstable

view xen/include/asm-ia64/linux-xen/asm/meminit.h @ 10673:80e04aa530b8

[IA64] Fix LOAD_PHYSCAL macro

This fix is workaround. Now LOAD_PHYSCAL is used only
by MCA/INIT handler.

Signed-off-by: Akio Takebe <takebe_akio@jp.fujitsu.com>
author awilliam@xenbuild.aw
date Thu Jul 06 10:04:57 2006 -0600 (2006-07-06)
parents 0a226de3fc37
children 4108c2589fd1
line source
1 #ifndef meminit_h
2 #define meminit_h
4 /*
5 * This file is subject to the terms and conditions of the GNU General Public
6 * License. See the file "COPYING" in the main directory of this archive
7 * for more details.
8 */
10 #include <linux/config.h>
12 /*
13 * Entries defined so far:
14 * - boot param structure itself
15 * - memory map
16 #ifndef XEN
17 * - initrd (optional)
18 #endif
19 * - command line string
20 * - kernel code & data
21 #ifdef XEN
22 * - dom0 code & data
23 * - initrd (optional)
24 #endif
25 * - Kernel memory map built from EFI memory map
26 *
27 * More could be added if necessary
28 */
29 #ifndef XEN
30 #define IA64_MAX_RSVD_REGIONS 6
31 #else
32 #define IA64_MAX_RSVD_REGIONS 7
33 #endif
35 struct rsvd_region {
36 unsigned long start; /* virtual address of beginning of element */
37 unsigned long end; /* virtual address of end of element + 1 */
38 };
40 extern struct rsvd_region rsvd_region[IA64_MAX_RSVD_REGIONS + 1];
41 extern int num_rsvd_regions;
43 extern void find_memory (void);
44 extern void reserve_memory (void);
45 extern void find_initrd (void);
46 extern int filter_rsvd_memory (unsigned long start, unsigned long end, void *arg);
47 extern void efi_memmap_init(unsigned long *, unsigned long *);
49 /*
50 * For rounding an address to the next IA64_GRANULE_SIZE or order
51 */
52 #define GRANULEROUNDDOWN(n) ((n) & ~(IA64_GRANULE_SIZE-1))
53 #define GRANULEROUNDUP(n) (((n)+IA64_GRANULE_SIZE-1) & ~(IA64_GRANULE_SIZE-1))
54 #define ORDERROUNDDOWN(n) ((n) & ~((PAGE_SIZE<<MAX_ORDER)-1))
56 #ifdef CONFIG_DISCONTIGMEM
57 extern void call_pernode_memory (unsigned long start, unsigned long len, void *func);
58 #else
59 # define call_pernode_memory(start, len, func) (*func)(start, len, 0)
60 #endif
62 #define IGNORE_PFN0 1 /* XXX fix me: ignore pfn 0 until TLB miss handler is updated... */
64 #ifdef CONFIG_VIRTUAL_MEM_MAP
65 # define LARGE_GAP 0x40000000 /* Use virtual mem map if hole is > than this */
66 extern unsigned long vmalloc_end;
67 extern struct page *vmem_map;
68 extern int find_largest_hole (u64 start, u64 end, void *arg);
69 extern int create_mem_map_page_table (u64 start, u64 end, void *arg);
70 #endif
72 #endif /* meminit_h */