aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-15 13:49:04 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-02-15 13:49:04 +0000
commit07c2f1f3b089a8ea6fd4fe5aec45060a6fc6676b (patch)
treeae1fb5d3d6dd72169bd9ebf32e2bde9dc24561d5 /linux-2.6-xen-sparse
parenta190e7e3da8dd17be9e65f9b77c4a5e31f88b688 (diff)
downloadxen-07c2f1f3b089a8ea6fd4fe5aec45060a6fc6676b.tar.gz
xen-07c2f1f3b089a8ea6fd4fe5aec45060a6fc6676b.tar.bz2
xen-07c2f1f3b089a8ea6fd4fe5aec45060a6fc6676b.zip
linux: avoid need to modify include/linux/pfn.h
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'linux-2.6-xen-sparse')
-rw-r--r--linux-2.6-xen-sparse/arch/i386/mach-xen/setup.c2
-rw-r--r--linux-2.6-xen-sparse/include/linux/pfn.h9
2 files changed, 1 insertions, 10 deletions
diff --git a/linux-2.6-xen-sparse/arch/i386/mach-xen/setup.c b/linux-2.6-xen-sparse/arch/i386/mach-xen/setup.c
index 2d251cfb89..398db198b6 100644
--- a/linux-2.6-xen-sparse/arch/i386/mach-xen/setup.c
+++ b/linux-2.6-xen-sparse/arch/i386/mach-xen/setup.c
@@ -67,7 +67,7 @@ char * __init machine_specific_memory_setup(void)
if ( rc == -ENOSYS ) {
memmap.nr_entries = 1;
map[0].addr = 0ULL;
- map[0].size = PFN_PHYS(xen_start_info->nr_pages);
+ map[0].size = PFN_PHYS((unsigned long long)xen_start_info->nr_pages);
/* 8MB slack (to balance backend allocations). */
map[0].size += 8ULL << 20;
map[0].type = E820_RAM;
diff --git a/linux-2.6-xen-sparse/include/linux/pfn.h b/linux-2.6-xen-sparse/include/linux/pfn.h
deleted file mode 100644
index 87a4ab52b6..0000000000
--- a/linux-2.6-xen-sparse/include/linux/pfn.h
+++ /dev/null
@@ -1,9 +0,0 @@
-#ifndef _LINUX_PFN_H_
-#define _LINUX_PFN_H_
-
-#define PFN_ALIGN(x) (((unsigned long long)(x) + (PAGE_SIZE - 1)) & PAGE_MASK)
-#define PFN_UP(x) (((x) + PAGE_SIZE-1) >> PAGE_SHIFT)
-#define PFN_DOWN(x) ((x) >> PAGE_SHIFT)
-#define PFN_PHYS(x) ((unsigned long long)(x) << PAGE_SHIFT)
-
-#endif