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-changelog

[Xen-changelog] [xen-unstable] Define new <pfn.h> header for PFN_{DOWN,

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Define new <pfn.h> header for PFN_{DOWN, UP} macros.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Wed, 23 Mar 2011 22:20:08 +0000
Delivery-date: Wed, 23 Mar 2011 15:20:23 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1300887295 0
# Node ID c80e0fb4fe932b4d8379ea5739af93ae22a30ea5
# Parent  3831bd253e02aa0536ed32e936777d026abb955e
Define new <pfn.h> header for PFN_{DOWN,UP} macros.

Signed-off-by: Keir Fraser <keir@xxxxxxx>
---


diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/domain_build.c
--- a/xen/arch/x86/domain_build.c       Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/domain_build.c       Wed Mar 23 13:34:55 2011 +0000
@@ -21,6 +21,7 @@
 #include <xen/bitops.h>
 #include <xen/compat.h>
 #include <xen/libelf.h>
+#include <xen/pfn.h>
 #include <asm/regs.h>
 #include <asm/system.h>
 #include <asm/io.h>
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/e820.c
--- a/xen/arch/x86/e820.c       Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/e820.c       Wed Mar 23 13:34:55 2011 +0000
@@ -4,6 +4,7 @@
 #include <xen/mm.h>
 #include <xen/compat.h>
 #include <xen/dmi.h>
+#include <xen/pfn.h>
 #include <asm/e820.h>
 #include <asm/page.h>
 #include <asm/processor.h>
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/mm.c
--- a/xen/arch/x86/mm.c Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/mm.c Wed Mar 23 13:34:55 2011 +0000
@@ -99,6 +99,7 @@
 #include <xen/event.h>
 #include <xen/iocap.h>
 #include <xen/guest_access.h>
+#include <xen/pfn.h>
 #include <asm/paging.h>
 #include <asm/shadow.h>
 #include <asm/page.h>
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/msi.c
--- a/xen/arch/x86/msi.c        Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/msi.c        Wed Mar 23 13:34:55 2011 +0000
@@ -18,6 +18,7 @@
 #include <xen/pci_regs.h>
 #include <xen/iocap.h>
 #include <xen/keyhandler.h>
+#include <xen/pfn.h>
 #include <asm/io.h>
 #include <asm/smp.h>
 #include <asm/desc.h>
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/numa.c
--- a/xen/arch/x86/numa.c       Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/numa.c       Wed Mar 23 13:34:55 2011 +0000
@@ -13,6 +13,7 @@
 #include <xen/keyhandler.h>
 #include <xen/time.h>
 #include <xen/smp.h>
+#include <xen/pfn.h>
 #include <asm/acpi.h>
 #include <xen/sched.h>
 
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/setup.c      Wed Mar 23 13:34:55 2011 +0000
@@ -21,6 +21,7 @@
 #include <xen/rcupdate.h>
 #include <xen/vga.h>
 #include <xen/dmi.h>
+#include <xen/pfn.h>
 #include <xen/nodemask.h>
 #include <public/version.h>
 #ifdef CONFIG_COMPAT
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/srat.c
--- a/xen/arch/x86/srat.c       Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/srat.c       Wed Mar 23 13:34:55 2011 +0000
@@ -17,6 +17,7 @@
 #include <xen/nodemask.h>
 #include <xen/acpi.h>
 #include <xen/numa.h>
+#include <xen/pfn.h>
 #include <asm/e820.h>
 #include <asm/page.h>
 
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/arch/x86/tboot.c
--- a/xen/arch/x86/tboot.c      Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/arch/x86/tboot.c      Wed Mar 23 13:34:55 2011 +0000
@@ -6,6 +6,7 @@
 #include <xen/domain_page.h>
 #include <xen/iommu.h>
 #include <xen/acpi.h>
+#include <xen/pfn.h>
 #include <asm/fixmap.h>
 #include <asm/page.h>
 #include <asm/processor.h>
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/include/asm-x86/page.h
--- a/xen/include/asm-x86/page.h        Mon Mar 21 18:07:06 2011 +0000
+++ b/xen/include/asm-x86/page.h        Wed Mar 23 13:34:55 2011 +0000
@@ -396,8 +396,6 @@
 
 #endif /* !__ASSEMBLY__ */
 
-#define PFN_DOWN(x)   ((x) >> PAGE_SHIFT)
-#define PFN_UP(x)     (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
 #define PAGE_ALIGN(x) (((x) + PAGE_SIZE - 1) & PAGE_MASK)
 
 #endif /* __X86_PAGE_H__ */
diff -r 3831bd253e02 -r c80e0fb4fe93 xen/include/xen/pfn.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/xen/include/xen/pfn.h     Wed Mar 23 13:34:55 2011 +0000
@@ -0,0 +1,9 @@
+#ifndef __XEN_PFN_H__
+#define __XEN_PFN_H__
+
+#include <asm/page.h>
+
+#define PFN_DOWN(x)   ((x) >> PAGE_SHIFT)
+#define PFN_UP(x)     (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
+
+#endif /* __XEN_PFN_H__ */

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Define new <pfn.h> header for PFN_{DOWN, UP} macros., Xen patchbot-unstable <=