ia64/xen-unstable

changeset 15859:7d9b20d91102

[IA64] Use xc_map_foreign_pages() in copy_from_GFW_to_nvram()

use xc_map_foreign_pages() where possible

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Mon Sep 10 13:56:34 2007 -0600 (2007-09-10)
parents 1c392e192379
children 42b925c00d8a
files tools/libxc/ia64/xc_ia64_hvm_build.c
line diff
     1.1 --- a/tools/libxc/ia64/xc_ia64_hvm_build.c	Mon Sep 10 13:52:19 2007 -0600
     1.2 +++ b/tools/libxc/ia64/xc_ia64_hvm_build.c	Mon Sep 10 13:56:34 2007 -0600
     1.3 @@ -701,8 +701,9 @@ copy_from_GFW_to_nvram(int xc_handle, ui
     1.4      for ( i=0; i<nr_pages; i++ )
     1.5          pfn_list[i] = (addr_from_GFW_4k_align >> PAGE_SHIFT) + i;
     1.6  
     1.7 -    tmp_ptr = (char *)xc_map_foreign_batch(xc_handle, dom,
     1.8 -    PROT_READ | PROT_WRITE, pfn_list, nr_pages);
     1.9 +    tmp_ptr = (char *)xc_map_foreign_pages(xc_handle, dom,
    1.10 +                                           PROT_READ | PROT_WRITE,
    1.11 +                                           pfn_list, nr_pages);
    1.12      if ( NULL == tmp_ptr )
    1.13      {
    1.14          PERROR("Cannot get nvram data from GFW!\n");