mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
linux: avoid need to modify include/linux/pfn.h
Signed-off-by: Jan Beulich <jbeulich@novell.com>
This commit is contained in:
1 parent
a190e7e3da
commit
07c2f1f3b0
2 files changed
+1
-10
No files matched your search
@@ -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;
|
||||
|
||||
@@ -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
|
||||