Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-22 Thread Yury Norov
On Wed, Jun 22, 2016 at 04:49:52PM +0100, Catalin Marinas wrote: > On Tue, Jun 21, 2016 at 08:06:55AM +0300, Yury Norov wrote: > > This patch adds support for ILP32 syscalls, sign and zero extending > > where needed. Unlike LP64, pointers are 32bit and need to be zero > > extended rather than the

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-22 Thread Catalin Marinas
On Tue, Jun 21, 2016 at 08:06:55AM +0300, Yury Norov wrote: > This patch adds support for ILP32 syscalls, sign and zero extending > where needed. Unlike LP64, pointers are 32bit and need to be zero > extended rather than the standard sign extend that the code would do. > We take advatage of ssize_

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-21 Thread Andreas Schwab
"Zhangjian (Bamvor)" writes: > Hi, > > On 2016/6/21 15:56, Andreas Schwab wrote: >> Yury Norov writes: >> >>> diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h >>> b/sysdeps/unix/sysv/linux/aarch64/sysdep.h >>> index 1ffabc2..42f89c8 100644 >>> --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-21 Thread Zhangjian (Bamvor)
Hi, On 2016/6/21 19:42, Zhangjian (Bamvor) wrote: Hi, On 2016/6/21 15:56, Andreas Schwab wrote: Yury Norov writes: diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index 1ffabc2..42f89c8 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-21 Thread Zhangjian (Bamvor)
Hi, On 2016/6/21 15:56, Andreas Schwab wrote: Yury Norov writes: diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index 1ffabc2..42f89c8 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h @@ -16

Re: [PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-21 Thread Andreas Schwab
Yury Norov writes: > diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h > b/sysdeps/unix/sysv/linux/aarch64/sysdep.h > index 1ffabc2..42f89c8 100644 > --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h > +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h > @@ -161,11 +161,11 @@ > call. */ > # u

[PATCH 11/27] [AARCH64] Syscalls for ILP32 are passed always via 64bit values.

2016-06-20 Thread Yury Norov
From: Andrew Pinski This patch adds support for ILP32 syscalls, sign and zero extending where needed. Unlike LP64, pointers are 32bit and need to be zero extended rather than the standard sign extend that the code would do. We take advatage of ssize_t being long rather than int for ILP32, to get