Re: [PATCH V3 05/26] csky: System Call

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:10:49PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > +SYSCALL_DEFINE6(mmap2, > > + unsigned long, addr, > > + unsigned long, len, > > + unsigned long, prot, > > + unsigned long, flags, > > + unsigned

Re: [PATCH V3 05/26] csky: System Call

2018-09-06 Thread Guo Ren
On Thu, Sep 06, 2018 at 04:10:49PM +0200, Arnd Bergmann wrote: > On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > > > +SYSCALL_DEFINE6(mmap2, > > + unsigned long, addr, > > + unsigned long, len, > > + unsigned long, prot, > > + unsigned long, flags, > > + unsigned

Re: [PATCH V3 05/26] csky: System Call

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > +SYSCALL_DEFINE6(mmap2, > + unsigned long, addr, > + unsigned long, len, > + unsigned long, prot, > + unsigned long, flags, > + unsigned long, fd, > + off_t, offset) > +{ > + if (unlikely(offset &

Re: [PATCH V3 05/26] csky: System Call

2018-09-06 Thread Arnd Bergmann
On Wed, Sep 5, 2018 at 2:08 PM Guo Ren wrote: > +SYSCALL_DEFINE6(mmap2, > + unsigned long, addr, > + unsigned long, len, > + unsigned long, prot, > + unsigned long, flags, > + unsigned long, fd, > + off_t, offset) > +{ > + if (unlikely(offset &

[PATCH V3 05/26] csky: System Call

2018-09-05 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 69 + arch/csky/include/asm/syscalls.h| 14 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 63 +

[PATCH V3 05/26] csky: System Call

2018-09-05 Thread Guo Ren
Signed-off-by: Guo Ren --- arch/csky/include/asm/syscall.h | 69 + arch/csky/include/asm/syscalls.h| 14 arch/csky/include/uapi/asm/unistd.h | 10 ++ arch/csky/kernel/syscall.c | 63 +