]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[ARM] sys_mbind needs wrapping
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 9 Sep 2005 17:35:12 +0000 (18:35 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 9 Sep 2005 17:35:12 +0000 (18:35 +0100)
sys_mbind is a 6-arg syscall, hence needs wrapping to save the
sixth argument.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/calls.S
arch/arm/kernel/entry-common.S

index cc89a73ada6f1efa5acf2a64a47a1fc79ffd24a6..949ec4427f2165efdd2a7c04a66d391a76c7da6e 100644 (file)
@@ -333,7 +333,7 @@ __syscall_start:
                .long   sys_inotify_init
                .long   sys_inotify_add_watch
                .long   sys_inotify_rm_watch
-               .long   sys_mbind
+               .long   sys_mbind_wrapper
 /* 320 */      .long   sys_get_mempolicy
                .long   sys_set_mempolicy
 __syscall_end:
index 6281d488ac975d225aa10f536b5849db1b528956..db302c6e53439ddd553d42992109deccc3105741 100644 (file)
@@ -269,6 +269,10 @@ sys_arm_fadvise64_64_wrapper:
                str     r5, [sp, #4]            @ push r5 to stack
                b       sys_arm_fadvise64_64
 
+sys_mbind_wrapper:
+               str     r5, [sp, #4]
+               b       sys_mbind
+
 /*
  * Note: off_4k (r5) is always units of 4K.  If we can't do the requested
  * offset, we return EINVAL.