Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=bc671aa9838f234ccfc794a77325628f1e41e083
Commit:     bc671aa9838f234ccfc794a77325628f1e41e083
Parent:     068732d9b465cafcc56a745c3931f2fc4e58f48f
Author:     Chris Zankel <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 5 10:22:58 2007 -0700
Committer:  Chris Zankel <[EMAIL PROTECTED]>
CommitDate: Mon Aug 27 13:53:32 2007 -0700

    [XTENSA] Fix fadvise64_64
    
    Xtensa passes long long arguments in a even/odd register pair,
    so we also need to shuffle the arguments when passed through the
    system call to avoid an empty argument register.
    
    Signed-off-by: Chris Zankel <[EMAIL PROTECTED]>
---
 arch/xtensa/kernel/syscall.c |    5 +++++
 include/asm-xtensa/syscall.h |    2 ++
 include/asm-xtensa/unistd.h  |    2 +-
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/arch/xtensa/kernel/syscall.c b/arch/xtensa/kernel/syscall.c
index fe3834b..f3e16ef 100644
--- a/arch/xtensa/kernel/syscall.c
+++ b/arch/xtensa/kernel/syscall.c
@@ -93,3 +93,8 @@ asmlinkage long xtensa_shmat(int shmid, char __user *shmaddr, 
int shmflg)
        return (long)ret;
 }
 
+asmlinkage long xtensa_fadvise64_64(int fd, int advice, unsigned long long 
offset, unsigned long long len)
+{
+       return sys_fadvise64_64(fd, offset, len, advice);
+}
+
diff --git a/include/asm-xtensa/syscall.h b/include/asm-xtensa/syscall.h
index ea9b513..05cebf8 100644
--- a/include/asm-xtensa/syscall.h
+++ b/include/asm-xtensa/syscall.h
@@ -28,6 +28,8 @@ asmlinkage long sys_rt_sigaction(int,
                                 struct sigaction __user *,
                                 size_t);
 asmlinkage long xtensa_shmat(int, char __user *, int);
+asmlinkage long xtensa_fadvise64_64(int, int,
+                                   unsigned long long, unsigned long long);
 
 /* Should probably move to linux/syscalls.h */
 struct pollfd;
diff --git a/include/asm-xtensa/unistd.h b/include/asm-xtensa/unistd.h
index bed0410..92968aa 100644
--- a/include/asm-xtensa/unistd.h
+++ b/include/asm-xtensa/unistd.h
@@ -151,7 +151,7 @@ __SYSCALL( 61, sys_fcntl64, 3)
 #define __NR_available62                        62
 __SYSCALL( 62, sys_ni_syscall, 0)
 #define __NR_fadvise64_64                       63
-__SYSCALL( 63, sys_fadvise64_64, 6)
+__SYSCALL( 63, xtensa_fadvise64_64, 6)
 #define __NR_utime                              64     /* glibc 2.3.3 ?? */
 __SYSCALL( 64, sys_utime, 2)
 #define __NR_utimes                             65
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to