WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ia64-devel

[Xen-ia64-devel] [PATCH] clean up of xenpage.h

To: xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-ia64-devel] [PATCH] clean up of xenpage.h
From: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
Date: Fri, 17 Oct 2008 18:22:15 +0900
Delivery-date: Fri, 17 Oct 2008 02:22:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.6i
[IA64] clean up of xenpage.h

remove nasty undefs in xenpage.h.

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff -r 07558e1876e4 xen/include/asm-ia64/linux-xen/asm/page.h
--- a/xen/include/asm-ia64/linux-xen/asm/page.h Fri Oct 17 18:16:05 2008 +0900
+++ b/xen/include/asm-ia64/linux-xen/asm/page.h Fri Oct 17 18:24:57 2008 +0900
@@ -99,6 +99,7 @@
 
 #define virt_addr_valid(kaddr) mfn_valid(__pa(kaddr) >> PAGE_SHIFT)
 
+#ifndef XEN
 #ifdef CONFIG_VIRTUAL_MEM_MAP
 extern int ia64_mfn_valid (unsigned long pfn);
 #else
@@ -119,6 +120,7 @@
 
 #define page_to_maddr(page)    (page_to_mfn(page) << PAGE_SHIFT)
 #define virt_to_page(kaddr)    mfn_to_page(__pa(kaddr) >> PAGE_SHIFT)
+#endif
 
 typedef union ia64_va {
        struct {
diff -r 07558e1876e4 xen/include/asm-ia64/xenpage.h
--- a/xen/include/asm-ia64/xenpage.h    Fri Oct 17 18:16:05 2008 +0900
+++ b/xen/include/asm-ia64/xenpage.h    Fri Oct 17 18:24:57 2008 +0900
@@ -5,11 +5,7 @@
 #define IA64_MAX_PHYS_BITS     50      /* max. number of physical address bits 
(architected) */
 
 #ifndef __ASSEMBLY__
-#undef mfn_valid
-#undef page_to_mfn
-#undef mfn_to_page
 #ifdef CONFIG_VIRTUAL_FRAME_TABLE
-#undef ia64_mfn_valid
 extern int ia64_mfn_valid (unsigned long pfn);
 # define mfn_valid(_pfn)       (((_pfn) < max_page) && ia64_mfn_valid(_pfn))
 #else
@@ -37,8 +33,6 @@
 #define virt_to_maddr(va)      (__virt_to_maddr((unsigned long)va))
 
 
-#undef page_to_maddr
-#undef virt_to_page
 #define page_to_maddr(page)    (page_to_mfn(page) << PAGE_SHIFT)
 #define virt_to_page(kaddr)    (mfn_to_page(virt_to_maddr(kaddr) >> 
PAGE_SHIFT))
 
@@ -97,8 +91,6 @@
     return (paddr << 1) >> 1;
 }
 
-#undef __pa
-#undef __va
 #define __pa(x)                (virt_to_maddr(x))
 #define __va(x)                ({xen_va _v; _v.l = (long) (x); _v.f.reg = -1; 
_v.p;})
 


-- 
yamahata

_______________________________________________
Xen-ia64-devel mailing list
Xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ia64-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-ia64-devel] [PATCH] clean up of xenpage.h, Isaku Yamahata <=