Re: [PATCH V2 05/19] csky: System Call

2018-07-04 Thread Guo Ren
On Wed, Jul 04, 2018 at 11:04:37PM +0200, Arnd Bergmann wrote: > Right, I do understand what it's used for, my point was that you > don't really need a separate system call number for it, just redirect > the entry point using the same trick that nds32 has in > arch/nds32/kernel/syscall_table.c: >

Re: [PATCH V2 05/19] csky: System Call

2018-07-04 Thread Arnd Bergmann
On Wed, Jul 4, 2018 at 1:49 PM, Guo Ren wrote: > >> > +#define __NR_set_thread_area (__NR_arch_specific_syscall + 0) >> > +__SYSCALL(__NR_set_thread_area, sys_set_thread_area) >> > +#define __NR_ipc (__NR_arch_specific_syscall + 1) >> > +__SYSCALL(__NR_ipc, sys_ipc) >> > +#define

Re: [PATCH V2 05/19] csky: System Call

2018-07-04 Thread Guo Ren
On Tue, Jul 03, 2018 at 09:53:48PM +0200, Arnd Bergmann wrote: > We really need all new architectures to use the generic syscall ABI, > see below for the details. Ok, follow the rules. > > +#define __ARCH_WANT_OLD_READDIR > > +#define __ARCH_WANT_RENAMEAT > > +#define __ARCH_WANT_STAT64 > > +#defi

Re: [PATCH V2 05/19] csky: System Call

2018-07-03 Thread Arnd Bergmann
On Sun, Jul 1, 2018 at 7:30 PM, Guo Ren wrote: > Signed-off-by: Guo Ren We really need all new architectures to use the generic syscall ABI, see below for the details. > diff --git a/arch/csky/include/uapi/asm/unistd.h > b/arch/csky/include/uapi/asm/unistd.h > new file mode 100644 > index

[PATCH V2 05/19] csky: System Call

2018-07-01 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 | 63 + arch/csky/kernel/syscall.c | 63 ++