[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 00/20] linux-user: generate syscall_nr.sh
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 00/20] linux-user: generate syscall_nr.sh |
Date: |
Fri, 21 Feb 2020 13:56:04 +0000 |
On Fri, 21 Feb 2020 at 13:45, Peter Maydell <address@hidden> wrote:
>
> On Wed, 19 Feb 2020 at 22:07, Laurent Vivier <address@hidden> wrote:
> >
> > This series copies the files syscall.tbl from linux v5.5 and generates
> > the file syscall_nr.h from them.
> >
> > This is done for all the QEMU targets that have a syscall.tbl
> > in the linux source tree: mips, mips64, i386, x86_64, sparc, s390x,
> > ppc, arm, microblaze, sh4, xtensa, m68k, hppa and alpha.
> >
> > tilegx and cris are depecrated in linux (tilegx has no maintainer in QEMU)
> >
> > aarch64, nios2, openrisc and riscv have no syscall.tbl in linux.
>
> Is it the case that all our architectures either:
> (1) have a syscall.tbl
> (2) are using the asm-generic common numbering system ?
I think that for asm-generic we should be able to generate
the syscall_nr.h by suitably defining a __SYSCALL macro
before #including linux-headers/asm-whatever/unistd.h --
They basically define syscall numbers like this:
#define __NR_setxattr 5
__SYSCALL(__NR_setxattr, sys_setxattr)
so a C program that just did the autogeneration has the
info it needs.
thanks
-- PMM
- [PATCH v2 13/20] linux-user, i386: add syscall table generation support, (continued)
- [PATCH v2 13/20] linux-user, i386: add syscall table generation support, Laurent Vivier, 2020/02/19
- [PATCH v2 18/20] linux-user: update syscall.tbl from linux 0bf999f9c5e7, Laurent Vivier, 2020/02/19
- [PATCH v2 14/20] linux-user, x86_64: add syscall table generation support, Laurent Vivier, 2020/02/19
- [PATCH v2 09/20] linux-user, ppc: add syscall table generation support, Laurent Vivier, 2020/02/19
- [PATCH v2 16/20] linux-user, mips64: add syscall table generation support, Laurent Vivier, 2020/02/19
- [PATCH v2 15/20] linux-user, mips: add syscall table generation support, Laurent Vivier, 2020/02/19
- [PATCH v2 19/20] linux-user,mips: move content of mips_syscall_args, Laurent Vivier, 2020/02/19
- [PATCH v2 20/20] linux-user,mips: update syscall-args-o32.c.inc, Laurent Vivier, 2020/02/19
- [PATCH v2 12/20] linux-user, sparc, sparc64: add syscall table generation support, Laurent Vivier, 2020/02/19
- Re: [PATCH v2 00/20] linux-user: generate syscall_nr.sh, Peter Maydell, 2020/02/21