[PATCH v4 09/15] ARC: Linux ABI

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/nptl/pthreaddef.h | 32 +++ sysdeps/unix/sysv/linux/arc/bits/procfs.h | 35 +++ .../sysv/linux/arc/bits/types/__sigset_t.h| 12 +++ sysdeps/unix/sysv/linux/arc/getcontext.S | 63 +

[PATCH v4 04/15] ARC: Thread Local Storage support

2020-03-12 Thread Vineet Gupta
This includes all 4 TLS addressing models Signed-off-by: Vineet Gupta --- sysdeps/arc/dl-tls.h | 30 +++ sysdeps/arc/libc-tls.c | 27 ++ sysdeps/arc/nptl/tcb-offsets.sym | 11 +++ sysdeps/arc/nptl/tls.h | 150 +++

[PATCH v4 02/15] ARC: ABI Implementation

2020-03-12 Thread Vineet Gupta
This code deals with the ARC ABI. Signed-off-by: Vineet Gupta --- sysdeps/arc/__longjmp.S | 50 ++ sysdeps/arc/abort-instr.h | 2 + sysdeps/arc/bits/endianness.h | 15 +++ sysdeps/arc/bits/setjmp.h | 26 sysdeps/arc/bsd-_setjmp.S | 1 +

[PATCH v4 05/15] ARC: Atomics and Locking primitives

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/atomic-machine.h | 73 +++ sysdeps/arc/nptl/bits/semaphore.h | 32 ++ 2 files changed, 105 insertions(+) create mode 100644 sysdeps/arc/atomic-machine.h create mode 100644 sysdeps/arc/nptl/bits/semaphore.h

[PATCH v4 06/15] ARC: math soft float support

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/fenv.h | 72 ++ sysdeps/arc/nofpu/Implies | 1 + sysdeps/arc/nofpu/math-tests-exceptions.h | 27 + sysdeps/arc/nofpu/math-tests-rounding.h | 27 + sysdeps/arc/sfp-machine.h

[PATCH v4 10/15] ARC: Linux Startup and Dynamic Loading

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/start.S | 15 +++-- sysdeps/unix/sysv/linux/arc/dl-static.c | 84 + sysdeps/unix/sysv/linux/arc/ldsodefs.h | 32 ++ 3 files changed, 125 insertions(+), 6 deletions(-) create mode 100644

[PATCH v4 14/15] build-many-glibcs.py: Enable ARC builds

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- scripts/build-many-glibcs.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 0f6c4a5e3a08..011a30494e1a 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@

[PATCH v4 01/15] ARC: add definitions to elf/elf.h

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- elf/elf.h | 70 ++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/elf/elf.h b/elf/elf.h index ab8930463c67..51e9968405ff 100644 --- a/elf/elf.h +++ b/elf/elf.h @@ -330,7 +330,7 @@ typedef struct

[PATCH v4 15/15] Documentation for ARC port

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- NEWS| 11 +++ README | 1 + manual/install.texi | 5 + 3 files changed, 17 insertions(+) diff --git a/NEWS b/NEWS index b03681eb1462..fd1ef4f56429 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,17 @@ Major new features:

[PATCH v4 03/15] ARC: startup and dynamic linking code

2020-03-12 Thread Vineet Gupta
Code for C runtime startup and dynamic loading including PLT layout. Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/link.h | 52 ++ sysdeps/arc/dl-machine.h | 340 ++ sysdeps/arc/entry.h | 5 + sysdeps/arc/ldsodefs.h| 43 +

[PATCH v4 11/15] ARC: ABI lists

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/nofpu/libm-test-ulps | 390 +++ sysdeps/arc/nofpu/libm-test-ulps-name |1 + sysdeps/unix/sysv/linux/arc/c++-types.data| 67 + sysdeps/unix/sysv/linux/arc/ld.abilist|5 +

[PATCH v4 12/15] ARC: Update syscall-names.list for ARC specific syscalls

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/sysv/linux/syscall-names.list | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/unix/sysv/linux/syscall-names.list b/sysdeps/unix/sysv/linux/syscall-names.list index 3d89814003a2..758b50164103 100644 ---

[PATCH v4 00/15] glibc port to ARC processors

2020-03-12 Thread Vineet Gupta
Hi, This patchset implements glibc port to ARC HS48x processor from Synopsys. It is based on 64-time time and offset work by Alistair and others. Thank you guys for all the hard-work. Code - g...@github.com:foss-for-synopsys-dwc-arc-processors/glibc.git #arc-glibc-upstream v4: *

[PATCH v4 08/15] ARC: Linux Syscall Interface

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/sysv/linux/arc/arch-syscall.h| 317 ++ .../sysv/linux/arc/bits/socket-constants.h| 38 +++ sysdeps/unix/sysv/linux/arc/bits/timesize.h | 21 ++ sysdeps/unix/sysv/linux/arc/clone.S | 98 ++

[PATCH v4 13/15] ARC: Build Infrastructure

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/Implies| 3 +++ sysdeps/arc/Makefile | 25 ++ sysdeps/arc/Versions | 6 ++ sysdeps/arc/configure | 14

[PATCH v4 07/15] ARC: hardware floating point support

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/fenv.h |9 +- sysdeps/arc/fpu/e_sqrt.c| 27 + sysdeps/arc/fpu/e_sqrtf.c | 27 + sysdeps/arc/fpu/fclrexcpt.c | 36 + sysdeps/arc/fpu/fegetenv.c | 37 + sysdeps/arc/fpu/fegetmode.c

Re: [PATCH v3 00/17] glibc port to ARC processors

2020-03-12 Thread Joseph Myers
On Thu, 12 Mar 2020, Vineet Gupta wrote: > Hi Joseph, > > On 3/6/20 5:10 PM, Joseph Myers wrote: > > On Sat, 7 Mar 2020, Vineet Gupta wrote: > > > >> On 3/6/20 4:21 PM, Joseph Myers wrote: > >>> Please give details of what the entries would be for > >>>

Re: [PATCH v3 00/17] glibc port to ARC processors

2020-03-12 Thread Vineet Gupta
Hi Joseph, On 3/6/20 5:10 PM, Joseph Myers wrote: > On Sat, 7 Mar 2020, Vineet Gupta wrote: > >> On 3/6/20 4:21 PM, Joseph Myers wrote: >>> Please give details of what the entries would be for >>> and >> ARC >>* 32-bit, hard-float, LE:

[PATCH v2] Force 64-bit time based syscalls for TIMESIZE==64

2020-03-12 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- Changes since v1 - don't redirect these to 64-bit variants --- sysdeps/unix/sysv/linux/generic/sysdep.h | 23 +++ 1 file changed, 23 insertions(+) diff --git a/sysdeps/unix/sysv/linux/generic/sysdep.h

Re: [PATCH] Linux: Remove and the sysctl function

2020-03-12 Thread Vineet Gupta
On 3/12/20 1:15 AM, Florian Weimer wrote: > * Vineet Gupta via Libc-alpha: > >> On 3/11/20 1:19 PM, Zack Weinberg wrote: >>> So I withdraw my objections to your original patch. We can always put >>> sys/sysctl.h back in the future if someone does the work to write the >>> emulation. >> >> My 2

Re: [RESEND PATCH v2 1/9] iomap: Constify ioreadX() iomem argument (as in generic implementation)

2020-03-12 Thread Michael Ellerman
Krzysztof Kozlowski writes: > diff --git a/arch/powerpc/kernel/iomap.c b/arch/powerpc/kernel/iomap.c > index 5ac84efc6ede..9fe4fb3b08aa 100644 > --- a/arch/powerpc/kernel/iomap.c > +++ b/arch/powerpc/kernel/iomap.c > @@ -15,23 +15,23 @@ > * Here comes the ppc64 implementation of the IOMAP >

Re: [RESEND PATCH v2 6/9] drm/mgag200: Constify ioreadX() iomem argument (as in generic implementation)

2020-03-12 Thread Thomas Zimmermann
Hi Krzysztof, I just received a resend email from 3 weeks ago :/ Do you want me to merge the mgag200 patch into drm-misc-next? Best regards Thomas Am 19.02.20 um 18:50 schrieb Krzysztof Kozlowski: > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem

Re: [RESEND PATCH v2 8/9] media: fsl-viu: Constify ioreadX() iomem argument (as in generic implementation)

2020-03-12 Thread Hans Verkuil
On 2/19/20 6:50 PM, Krzysztof Kozlowski wrote: > The ioreadX() helpers have inconsistent interface. On some architectures > void *__iomem address argument is a pointer to const, on some not. > > Implementations of ioreadX() do not modify the memory under the address > so they can be converted to