ia64/xen-unstable

view linux-2.6-xen-sparse/arch/ia64/xen/drivers/xenia64_init.c @ 9677:6755e3ab2eb1

[IA64] remove printk warning of xen_init

remove printk warning of xen_init

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author awilliam@xenbuild.aw
date Thu Apr 13 13:41:59 2006 -0600 (2006-04-13)
parents 2b6e531dab38
children a1add4e39878
line source
1 #ifdef __ia64__
2 #include <linux/config.h>
3 #include <linux/module.h>
4 #include <linux/efi.h>
5 #include <asm/sal.h>
6 #include <asm/hypervisor.h>
7 /* #include <asm-xen/evtchn.h> */
8 #include <xen/interface/arch-ia64.h>
9 #include <linux/vmalloc.h>
11 shared_info_t *HYPERVISOR_shared_info = (shared_info_t *)0xf100000000000000;
12 EXPORT_SYMBOL(HYPERVISOR_shared_info);
14 static int initialized;
15 start_info_t *xen_start_info;
17 int xen_init(void)
18 {
19 shared_info_t *s = HYPERVISOR_shared_info;
21 if (initialized)
22 return running_on_xen ? 0 : -1;
24 if (!running_on_xen)
25 return -1;
27 xen_start_info = __va(s->arch.start_info_pfn << PAGE_SHIFT);
28 xen_start_info->flags = s->arch.flags;
29 printk("Running on Xen! start_info_pfn=0x%lx nr_pages=%ld flags=0x%x\n",
30 s->arch.start_info_pfn, xen_start_info->nr_pages,
31 xen_start_info->flags);
33 evtchn_init();
34 initialized = 1;
35 return 0;
36 }
38 /* We just need a range of legal va here, though finally identity
39 * mapped one is instead used for gnttab mapping.
40 */
41 unsigned long alloc_empty_foreign_map_page_range(unsigned long pages)
42 {
43 struct vm_struct *vma;
45 if ( (vma = get_vm_area(PAGE_SIZE * pages, VM_ALLOC)) == NULL )
46 return NULL;
48 return (unsigned long)vma->addr;
49 }
51 #if 0
52 /* These should be define'd but some drivers use them without
53 * a convenient arch include */
54 unsigned long mfn_to_pfn(unsigned long mfn) { return mfn; }
55 #endif
56 #endif