[PATCH] Enable NUMA API on ppc64

Anton Blanchard anton at samba.org
Fri Sep 10 19:11:28 EST 2004


Plumb the NUMA API syscalls into ppc64. Also add some missing cond_syscalls
so we still link with NUMA API disabled.

Signed-off-by: Anton Blanchard <anton at samba.org>

diff -puN arch/ppc64/kernel/misc.S~numa_api arch/ppc64/kernel/misc.S
--- foobar2/arch/ppc64/kernel/misc.S~numa_api	2004-09-10 18:32:34.385768254 +1000
+++ foobar2-anton/arch/ppc64/kernel/misc.S	2004-09-10 18:32:34.420765564 +1000
@@ -860,9 +860,9 @@ _GLOBAL(sys_call_table32)
 	.llong .sys_ni_syscall		/* 256 reserved for sys_debug_setcontext */
 	.llong .sys_ni_syscall		/* 257 reserved for vserver */
 	.llong .sys_ni_syscall		/* 258 reserved for new sys_remap_file_pages */
-	.llong .sys_ni_syscall		/* 259 reserved for new sys_mbind */
-	.llong .sys_ni_syscall		/* 260 reserved for new sys_get_mempolicy */
-	.llong .sys_ni_syscall		/* 261 reserved for new sys_set_mempolicy */
+	.llong .compat_mbind
+	.llong .compat_get_mempolicy	/* 260 */
+	.llong .compat_set_mempolicy
 	.llong .compat_sys_mq_open
 	.llong .sys_mq_unlink
 	.llong .compat_sys_mq_timedsend
@@ -1132,9 +1132,9 @@ _GLOBAL(sys_call_table)
 	.llong .sys_ni_syscall		/* 256 reserved for sys_debug_setcontext */
 	.llong .sys_ni_syscall		/* 257 reserved for vserver */
 	.llong .sys_ni_syscall		/* 258 reserved for new sys_remap_file_pages */
-	.llong .sys_ni_syscall		/* 259 reserved for new sys_mbind */
-	.llong .sys_ni_syscall		/* 260 reserved for new sys_get_mempolicy */
-	.llong .sys_ni_syscall		/* 261 reserved for new sys_set_mempolicy */
+	.llong .sys_mbind
+	.llong .sys_get_mempolicy	/* 260 */
+	.llong .sys_set_mempolicy
 	.llong .sys_mq_open
 	.llong .sys_mq_unlink
 	.llong .sys_mq_timedsend
diff -puN arch/ppc64/mm/numa.c~numa_api arch/ppc64/mm/numa.c
diff -puN include/asm-ppc64/unistd.h~numa_api include/asm-ppc64/unistd.h
--- foobar2/include/asm-ppc64/unistd.h~numa_api	2004-09-10 18:32:34.397767332 +1000
+++ foobar2-anton/include/asm-ppc64/unistd.h	2004-09-10 18:32:34.423765333 +1000
@@ -269,9 +269,9 @@
 /* Number 256 is reserved for sys_debug_setcontext */
 /* Number 257 is reserved for vserver */
 /* Number 258 is reserved for new sys_remap_file_pages */
-/* Number 259 is reserved for new sys_mbind */
-/* Number 260 is reserved for new sys_get_mempolicy */
-/* Number 261 is reserved for new sys_set_mempolicy */
+#define __NR_mbind		259 
+#define __NR_get_mempolicy	260 
+#define __NR_set_mempolicy	261 
 #define __NR_mq_open		262
 #define __NR_mq_unlink		263
 #define __NR_mq_timedsend	264
diff -puN kernel/sys.c~fix_numa_api kernel/sys.c
--- foobar2/kernel/sys.c~fix_numa_api	2004-09-10 18:59:26.757155478 +1000
+++ foobar2-anton/kernel/sys.c	2004-09-10 19:00:16.455837772 +1000
@@ -274,7 +274,9 @@ cond_syscall(compat_sys_mq_getsetattr)
 cond_syscall(sys_mbind)
 cond_syscall(sys_get_mempolicy)
 cond_syscall(sys_set_mempolicy)
+cond_syscall(compat_mbind)
 cond_syscall(compat_get_mempolicy)
+cond_syscall(compat_set_mempolicy)
 
 /* arch-specific weak syscall entries */
 cond_syscall(sys_pciconfig_read)
_



More information about the Linuxppc64-dev mailing list