xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] x86: allow SRAT to be used on 32-bit systems with memory beyond 4G
@ 2010-02-24 13:44 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-02-24 13:44 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 1411 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-02-19.orig/xen/arch/x86/srat.c	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-19/xen/arch/x86/srat.c	2010-02-24 14:25:50.000000000 +0100
@@ -59,7 +59,7 @@ __devinit int setup_node(int pxm)
 	return pxm2node[pxm];
 }
 
-int valid_numa_range(unsigned long start, unsigned long end, int node)
+int valid_numa_range(u64 start, u64 end, int node)
 {
 	int i;
 
@@ -74,7 +74,7 @@ int valid_numa_range(unsigned long start
 	return 0;
 }
 
-static __init int conflicting_memblks(unsigned long start, unsigned long end)
+static __init int conflicting_memblks(u64 start, u64 end)
 {
 	int i;
 
--- 2010-02-19.orig/xen/include/asm-x86/numa.h	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-19/xen/include/asm-x86/numa.h	2010-02-24 14:26:56.000000000 +0100
@@ -76,11 +76,11 @@ static inline __attribute__((pure)) int 
 #define node_end_pfn(nid)       (NODE_DATA(nid)->node_start_pfn + \
 				 NODE_DATA(nid)->node_spanned_pages)
 
-extern int valid_numa_range(unsigned long start, unsigned long end, int node);
+extern int valid_numa_range(u64 start, u64 end, int node);
 #else
 #define init_cpu_to_node() do {} while (0)
 #define clear_node_cpumask(cpu) do {} while (0)
-#define valid_numa_range(start, end, node) {return 1;}
+#define valid_numa_range(start, end, node) 1
 #endif
 
 void srat_parse_regions(u64 addr);




[-- Attachment #2: xen-srat-32bit.patch --]
[-- Type: text/plain, Size: 1405 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-02-19.orig/xen/arch/x86/srat.c	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-19/xen/arch/x86/srat.c	2010-02-24 14:25:50.000000000 +0100
@@ -59,7 +59,7 @@ __devinit int setup_node(int pxm)
 	return pxm2node[pxm];
 }
 
-int valid_numa_range(unsigned long start, unsigned long end, int node)
+int valid_numa_range(u64 start, u64 end, int node)
 {
 	int i;
 
@@ -74,7 +74,7 @@ int valid_numa_range(unsigned long start
 	return 0;
 }
 
-static __init int conflicting_memblks(unsigned long start, unsigned long end)
+static __init int conflicting_memblks(u64 start, u64 end)
 {
 	int i;
 
--- 2010-02-19.orig/xen/include/asm-x86/numa.h	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-19/xen/include/asm-x86/numa.h	2010-02-24 14:26:56.000000000 +0100
@@ -76,11 +76,11 @@ static inline __attribute__((pure)) int 
 #define node_end_pfn(nid)       (NODE_DATA(nid)->node_start_pfn + \
 				 NODE_DATA(nid)->node_spanned_pages)
 
-extern int valid_numa_range(unsigned long start, unsigned long end, int node);
+extern int valid_numa_range(u64 start, u64 end, int node);
 #else
 #define init_cpu_to_node() do {} while (0)
 #define clear_node_cpumask(cpu) do {} while (0)
-#define valid_numa_range(start, end, node) {return 1;}
+#define valid_numa_range(start, end, node) 1
 #endif
 
 void srat_parse_regions(u64 addr);

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-24 13:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24 13:44 [PATCH] x86: allow SRAT to be used on 32-bit systems with memory beyond 4G Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).