[PATCH v5 11/14] ARC: Update syscall-names.list for ARC specific syscalls

2020-04-08 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 v5 12/14] ARC: Build Infrastructure

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- config.h.in| 3 + scripts/build-many-glibcs.py | 9 + sysdeps/arc/Implies| 3 + sysdeps/arc/Makefile | 21 +++ sysdeps/arc/Versions | 8 +

[PATCH v5 08/14] ARC: Linux ABI

2020-04-08 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 v5 02/14] ARC: startup and dynamic linking code

2020-04-08 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 v5 06/14] ARC: hardware floating point support

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- 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 | 31 ++

[PATCH v5 04/14] ARC: Atomics and Locking primitives

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

[PATCH v5 09/14] ARC: Linux Startup and Dynamic Loading

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/sysv/linux/arc/dl-static.c | 84 + sysdeps/unix/sysv/linux/arc/ldsodefs.h | 32 ++ 2 files changed, 116 insertions(+) create mode 100644 sysdeps/unix/sysv/linux/arc/dl-static.c create mode 100644

[PATCH v5 07/14] ARC: Linux Syscall Interface

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/unix/sysv/linux/arc/arch-syscall.h| 317 ++ sysdeps/unix/sysv/linux/arc/bits/timesize.h | 21 ++ sysdeps/unix/sysv/linux/arc/clone.S | 98 ++ sysdeps/unix/sysv/linux/arc/jmp_buf-macros.h | 6 +

[PATCH v5 01/14] ARC: ABI Implementation

2020-04-08 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 v5 03/14] ARC: Thread Local Storage support

2020-04-08 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 v5 05/14] ARC: math soft float support

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/bits/fenv.h | 77 +++ 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 v5 13/14] build-many-glibcs.py: Enable ARC builds

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- scripts/build-many-glibcs.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 64a836c52ea9..77b686d34cea 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -1248,6

[PATCH v5 14/14] Documentation for ARC port

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- NEWS| 9 + README | 1 + manual/install.texi | 5 + 3 files changed, 15 insertions(+) diff --git a/NEWS b/NEWS index 14fd59a16a2d..6d17b6a0a087 100644 --- a/NEWS +++ b/NEWS @@ -17,6 +17,15 @@ Major new features: -

[PATCH v5 00/14] glibc port to ARC processors

2020-04-08 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 at g...@github.com:foss-for-synopsys-dwc-arc-processors/glibc.git arc-glibc-post-v5 v5: * Big

[PATCH v5 10/14] ARC: ABI lists

2020-04-08 Thread Vineet Gupta
Signed-off-by: Vineet Gupta --- sysdeps/arc/fpu/libm-test-ulps| 1140 + sysdeps/arc/fpu/libm-test-ulps-name |1 + sysdeps/arc/nofpu/libm-test-ulps | 270 +++ sysdeps/arc/nofpu/libm-test-ulps-name |1 +

Re: [PATCH V2 0/3] mm/debug: Add more arch page table helper tests

2020-04-08 Thread Anshuman Khandual
On 04/08/2020 05:45 PM, Gerald Schaefer wrote: > On Wed, 8 Apr 2020 12:41:51 +0530 > Anshuman Khandual wrote: > > [...] >>> Some thing like this instead. pte_t pte = READ_ONCE(*ptep); pte = pte_mkhuge(__pte((pte_val(pte) | RANDOM_ORVALUE) & PMD_MASK)); We

Re: [PATCH] [ARC] Allow more ABIs in GLIBC_DYNAMIC_LINKER

2020-04-08 Thread Vineet Gupta
Hi Claudiu, For glibc needs can this be backported to gcc-9 please ! Thx, -Vineet On 3/31/20 3:06 AM, Claudiu Zissulescu Ianculescu wrote: > Pushed. > > Thank you, > Claudiu > > On Sun, Mar 29, 2020 at 2:05 AM Vineet Gupta via Gcc-patches > wrote: >> Enable big-endian suffixed dynamic linker

Re: [PATCH V2 0/3] mm/debug: Add more arch page table helper tests

2020-04-08 Thread Gerald Schaefer
On Wed, 8 Apr 2020 12:41:51 +0530 Anshuman Khandual wrote: [...] > > > >> > >> Some thing like this instead. > >> > >> pte_t pte = READ_ONCE(*ptep); > >> pte = pte_mkhuge(__pte((pte_val(pte) | RANDOM_ORVALUE) & PMD_MASK)); > >> > >> We cannot use mk_pte_phys() as it is defined only on some

Re: [PATCH V2 0/3] mm/debug: Add more arch page table helper tests

2020-04-08 Thread Anshuman Khandual
On 04/07/2020 09:24 PM, Gerald Schaefer wrote: > On Sun, 5 Apr 2020 17:58:14 +0530 > Anshuman Khandual wrote: > > [...] >>> >>> Could be fixed like this (the first de-reference is a bit special, >>> because at that point *ptep does not really point to a large (pmd) entry >>> yet, it is