]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
xen: move map_frames_ex under minios_ namespace
authorWei Liu <liuw@liuw.name>
Tue, 27 Jan 2015 11:26:10 +0000 (11:26 +0000)
committerWei Liu <wei.liu2@citrix.com>
Tue, 27 Jan 2015 11:28:24 +0000 (11:28 +0000)
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/ioremap.c
xen/arch/x86/mm.c
xen/include/mini-os/mm.h
xen/include/mini-os/x86/mm.h

index ab2a81d2982a95f448c942aa37ad10be0a7a14c7..31ecdd41655b8f226223147239561b0257f9bca8 100644 (file)
@@ -52,8 +52,8 @@ static void *__do_ioremap(unsigned long phys_addr, unsigned long size,
             goto mfn_invalid;
         }
     }   
-    va = (unsigned long)map_frames_ex(&mfns, num_pages, 0, 1, 1,
-                                      DOMID_IO, NULL, prot);
+    va = (unsigned long)minios_map_frames_ex(&mfns, num_pages, 0, 1, 1,
+                                             DOMID_IO, NULL, prot);
     return (void *)(va + offset);
     
 mfn_invalid:
index d47dc619474113507eb7d79dceda2a15cb41cb09..fa19b6b4177ace7cb8fd527f695e566ac1afc4b8 100644 (file)
@@ -618,10 +618,10 @@ void do_map_frames(unsigned long va,
  * Map an array of MFNs contiguous into virtual address space. Virtual
  * addresses are allocated from the on demand area.
  */
-void *map_frames_ex(const unsigned long *mfns, unsigned long n, 
-                    unsigned long stride, unsigned long incr,
-                    unsigned long alignment,
-                    domid_t id, int *err, unsigned long prot)
+void *minios_map_frames_ex(const unsigned long *mfns, unsigned long n,
+                           unsigned long stride, unsigned long incr,
+                           unsigned long alignment,
+                           domid_t id, int *err, unsigned long prot)
 {
     unsigned long va = allocate_ondemand(n, alignment);
 
index ec3db6a21387eb5ee1c80e2d7807d4e3a1809ace..2de72c0f8f0781b23542281cd926a46c16f55eb6 100644 (file)
@@ -65,7 +65,8 @@ void arch_init_p2m(unsigned long max_pfn_p);
 
 unsigned long allocate_ondemand(unsigned long n, unsigned long alignment);
 /* map f[i*stride]+i*increment for i in 0..n-1, aligned on alignment pages */
-void *map_frames_ex(const unsigned long *f, unsigned long n, unsigned long stride,
+void *minios_map_frames_ex(const unsigned long *f, unsigned long n,
+       unsigned long stride,
        unsigned long increment, unsigned long alignment, domid_t id,
        int *err, unsigned long prot);
 void do_map_frames(unsigned long addr,
index 0b5d3083884baf1f422502839cda03e177100582..53c2875231c95736fe066d7b3d0ae21619456f0e 100644 (file)
@@ -226,8 +226,8 @@ static __inline__ paddr_t machine_to_phys(maddr_t machine)
 })
 #define virtual_to_mfn(_virt)     pte_to_mfn(virtual_to_pte(_virt))
 
-#define map_frames(f, n) map_frames_ex(f, n, 1, 0, 1, DOMID_SELF, NULL, L1_PROT)
-#define map_zero(n, a) map_frames_ex(&mfn_zero, n, 0, 0, a, DOMID_SELF, NULL, L1_PROT_RO)
+#define map_frames(f, n) minios_map_frames_ex(f, n, 1, 0, 1, DOMID_SELF, NULL, L1_PROT)
+#define map_zero(n, a) minios_map_frames_ex(&mfn_zero, n, 0, 0, a, DOMID_SELF, NULL, L1_PROT_RO)
 #define do_map_zero(start, n) do_map_frames(start, &mfn_zero, n, 0, 0, DOMID_SELF, NULL, L1_PROT_RO)
 
 pgentry_t *need_pgt(unsigned long addr);