On 30 April 2013 07:38, John Rigby <[email protected]> wrote: > From: Alexander Graf <[email protected]> > > The AArch64 syscall definitions are all publicly available in the Linux > kernel. Let's add them to our linux-user emulation target, so that we > can easily handle AArch64 syscalls. > > Signed-off-by: Alexander Graf <[email protected]> > --- > linux-user/arm/syscall_nr.h | 326 > +++++++++++++++++++++++++++++++++++++++++++ > linux-user/main.c | 15 ++ > 2 files changed, 341 insertions(+) > > diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h > index 42d6855..5703def 100644 > --- a/linux-user/arm/syscall_nr.h > +++ b/linux-user/arm/syscall_nr.h > @@ -2,6 +2,8 @@ > * This file contains the system call numbers. > */ > > +#ifndef TARGET_AARCH64 > + > #define TARGET_NR_restart_syscall ( 0) > #define TARGET_NR_exit ( 1) > #define TARGET_NR_fork ( 2) > @@ -378,3 +380,327 @@ > #define TARGET_NR_open_by_handle_at (371) > #define TARGET_NR_clock_adjtime (372) > #define TARGET_NR_syncfs (373) > + > +#else /* !TARGET_AARCH64 */ > +
My comments on v1 still apply here -- just put the aarch64 ABI related defines in their own linux-user/aarch64 directory and make configure set ABI appropriately. -- PMM
