[PATCH] ARC: string: handle gcc 6.x macro changes

2016-11-09 Thread Vineet Gupta
In gcc 6.x cleanup, the macros got renamed. (Need to support the old toggle for some more time) Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/string/arc/arcv2/memcpy.S | 2 +- libc/string/arc/arcv2/memset.S | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff

[PATCH 3/3] NPTL/ARC: provide a kernel assisted atomic cmpxchg

2016-11-07 Thread Vineet Gupta
ed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/bits/atomic.h | 37 ++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/arc/bits/atomic.h b/libc/sysdeps/linux/arc/bits/atomic.h index 48f37879c5c4..5878609

[PATCH 2/3] ARC: introduce explicit support for atomics

2016-11-07 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- extra/Configs/Config.arc | 8 1 file changed, 8 insertions(+) diff --git a/extra/Configs/Config.arc b/extra/Configs/Config.arc index 0c0bc71ce2fc..c263dbf46028 100644 --- a/extra/Configs/Config.arc +++ b/extra/Configs/Conf

[PATCH 0/3] ARC atomics support updates

2016-11-07 Thread Vineet Gupta
Hi, This fixes ARC port to support configs lacking llock/scond using kernel assisted cmpxchg. Thx, -Vineet Vineet Gupta (3): NPTL/ARC: implement __arch_exchange_32_acq using native EX ARC: introduce explicit support for atomics NPTL/ARC: provide a kernel assisted atomic cmpxchg extra

[PATCH 1/3] NPTL/ARC: implement __arch_exchange_32_acq using native EX

2016-11-07 Thread Vineet Gupta
ARC EX instruction maps directly to this primitive, thus helps elide the llock/scond based retry loop where possible. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/bits/atomic.h | 24 1 file changed, 24 insertions(+) diff --git

[PATCH] ARC: build: don't force usage of llock and swape instructions

2016-10-21 Thread Vineet Gupta
override the driver defaults in it's one level up build system. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- Rules.mak | 1 - 1 file changed, 1 deletion(-) diff --git a/Rules.mak b/Rules.mak index 8d0e66a49b72..cc1545c81f40 100644 --- a/Rules.mak +++ b/Rules.mak @@ -507,7 +507,6 @

[PATCH] ARC: update .note.ABI-tag for ABIv4

2016-10-13 Thread Vineet Gupta
Cc: Anton Kolesov <akole...@synopsys.com> Cc: linux-snps-...@lists.infradead.org Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/crt1.S | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/arc/crt1.S b/libc/sysdeps/li

[PATCH 1/2] ARC: nptl: cancellable wrappers were broken

2016-10-07 Thread Vineet Gupta
6b4: st.aw r3,[sp,-4] 26b8: st.aw r4,[sp,-4] 26bc: bl 1e28 <__librt_enable_asynccancel> Reported-by: Eugeniy Paltsev <palt...@synopsys.com> Cc: Alexey Brodkin <abrod...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libpth

[PATCH 2/2] ARC: nptl: cancellable wrappers were broken #2

2016-10-07 Thread Vineet Gupta
0,[sp,4] + 26f6: ld.ab blink,[sp,4]<--- finally pop BLINK 26fa: cmp r0,-1024 26fe: jls [blink] Reported-by: Eugeniy Paltsev <palt...@synopsys.com> Cc: Alexey Brodkin <abrod...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com&g

[uClibc] ARC: Support syscall ABI v4

2016-08-16 Thread Vineet Gupta
doesn't enforce the even-odd reg restriction. Do note that for ARCompact ISA builds v3 and v4 are practically the same in terms of gcc code generation. This change is dormant for now (gcc 4.8.x based tools) and will only kick in with switch to gcc 6.x based tools. Signed-off-by: Vineet Gupta <

Re: Problems with support of file locks for ARC (maybe for other targets too)

2016-08-11 Thread Vineet Gupta
On 08/11/2016 09:12 AM, Yuriy Kolerov wrote: > >>> Moreover the whole uClibc and every application must be compiled with >> those macros. Here is my question. Is it acceptable just to compile toolchain >> itself using CFLAGS_FOR_TARGET with those macros and don’t define them >> manually in each

Re: Problems with support of file locks for ARC (maybe for other targets too)

2016-08-09 Thread Vineet Gupta
Hi Yuriy, On 08/09/2016 10:06 AM, Yuriy Kolerov wrote: > 1. uClibc does not support OFD locks (https://lwn.net/Articles/586904/). > fcntl.h headers for all targets are not synchronized with Linux source tree > and does not contain these defines: > > 8<

Re: [PATCH] ARC: Support R_ARC_JMP_SLOT relocations during bootstrap

2016-08-08 Thread Vineet Gupta
On 07/28/2016 10:59 AM, Andrew Burgess wrote: > I ran into this issue while trying to debug a _different_ issue witin > the uClinc(-ng) arc dynamic linker. I turned on debugging support > within the dynamic linker, and the linker would no longer complete its > bootstrap phase due to a lack of

Re: [PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Vineet Gupta
On 07/28/2016 03:04 PM, Bernhard Reutner-Fischer wrote: >> Indeed your 2/2 seems to be the most "past-proof" code change. So I >> >would think it >> >is indeed better and is something I should have done in the first >> >place. >> > >> >@Alexey, @Vlad what say you ? > uClibc traditionally supports

Re: [PATCH 0/2] ARC Moving to @pcl relocations

2016-07-28 Thread Vineet Gupta
Hi Andrew, On 07/28/2016 11:20 AM, Andrew Burgess wrote: > This is a slightly odd series of 2 patches. The two patches are > actually alternative solutions to the same problem. I'm keen to see > one of these merged, but I don't know which method would be preferred. > > This commit aims to

[PATCH v2] ARC: Enable shared crt1

2016-06-23 Thread Vineet Gupta
sition independent way when taking function addresses. Cc: uclibc@uclibc.org <uclibc@uclibc.org> Cc: de...@uclibc-ng.org <de...@uclibc-ng.org> Cc: Cupertino Miranda <cmira...@synopsys.com> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/crt1.S |

Re: [uclibc-ng-devel] [PATCH] ARC: support shared crt1

2016-06-16 Thread Vineet Gupta
On Wednesday 15 June 2016 08:34 PM, Waldemar Brodkorb wrote: > Hi Vineet, > Vineet Gupta wrote, > >> Signed-off-by: Vineet Gupta <vgu...@synopsys.com> >> --- >> libc/sysdeps/linux/arc/crt1.S | 8 ++-- >> 1 file changed, 6 insertions(+), 2 deletions(-) &g

[PATCH] ARC: support shared crt1

2016-06-15 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/crt1.S | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/arc/crt1.S b/libc/sysdeps/linux/arc/crt1.S index 95c41f50..e38c8e81b2c0 100644 --- a/libc/sysdeps/linux/arc/

Re: [uclibc-ng-devel] [PATCH] ldso/ARC: fix DT_RELACOUNT handling

2016-05-29 Thread Vineet Gupta
On Sunday 29 May 2016 01:30 AM, Waldemar Brodkorb wrote: > ARC has between 28-30 failures even with latest binutils/gcc Latest here is pretty overloaded :-) We had 2016.03 release recently and then there's bleeding edge binutils atleast which is tracking pretty close to upstream binutils. What

Re: [PATCH] ldso: Force disable -mlong-calls when compiling ldso for ARC

2016-05-27 Thread Vineet Gupta
x r23: 0x000d08a5 > r24: 0x r25: 0x80808080 > > Segmentation fault > >8 > > Solution to this issue is simple we make sure dynamic > loader never gets compiled with "-mlong-calls" by forcing > "-mno-long-calls&qu

Re: [PATCH] ldso/ARC: fix DT_RELACOUNT handling

2016-05-20 Thread Vineet Gupta
On Friday 20 May 2016 12:57 PM, Khem Raj wrote: > On Thu, May 19, 2016 at 11:56 PM, Vineet Gupta > <vineet.gup...@synopsys.com> wrote: >> From: Cupertino Miranda <cmira...@synopsys.com> >> >> Wih new bintuils supporting DT_RELACOUNT, ldso was crashing as

[PATCH] ldso/ARC: fix DT_RELACOUNT handling

2016-05-20 Thread Vineet Gupta
From: Cupertino Miranda <cmira...@synopsys.com> Wih new bintuils supporting DT_RELACOUNT, ldso was crashing as it was parsing relocs incorrectly. Apparently that code ran for first time and was never tested. Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- ldso/ldso/arc/dl-

Re: [PATCH] ARCv2: update memset() so it could be used without double load/stores

2015-12-23 Thread Vineet Gupta
On Tuesday 20 October 2015 02:33 PM, Vineet Gupta wrote: > On Monday 20 July 2015 07:42 PM, Alexey Brodkin wrote: >> From: Claudiu Zissulescu <claz...@synopsys.com> >> >> Existing version of memset() relies on existence of 64-bit load/stores. >> While ARC HS3

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-12-23 Thread Vineet Gupta
On Tuesday 20 October 2015 01:40 PM, Vineet Gupta wrote: > On Monday 21 September 2015 09:28 AM, Vineet Gupta wrote: >>>>>>>> Assuming above is correct, you want those macros to be removed from >>>>>>>> nptl/*/**/vfork.S as well as libc/sy

Re: [PATCH 0/3] ARC uClibc fixes

2015-12-13 Thread Vineet Gupta
On Wednesday 21 October 2015 12:42 PM, Vineet Gupta wrote: > Hi, > > Assorted fixes for ARC, please consider applying. > > Thx, > -Vineet Ping ! Or should we assume that uClibc is dead for good ! -Vineet > > Vineet Gupta (3): > NPTL/ARCv2: Implement full memor

[PATCH 0/3] ARC uClibc fixes

2015-10-21 Thread Vineet Gupta
Hi, Assorted fixes for ARC, please consider applying. Thx, -Vineet Vineet Gupta (3): NPTL/ARCv2: Implement full memory barrier for NPTL NPTL/ARC: fix __lll_lock_wait_private redefinition for static links ARC: With NPTL support, GP is no longer used for PIC ldso/ldso/arc/dl-sysdep.h

[PATCH 3/3] ARC: With NPTL support, GP is no longer used for PIC

2015-10-21 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- ldso/ldso/arc/dl-sysdep.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/ldso/ldso/arc/dl-sysdep.h b/ldso/ldso/arc/dl-sysdep.h index ca62a2c04f35..b6bda9d14691 100644 --- a/ldso/ldso/arc/dl-sysdep.h +++ b/ldso/ldso/arc/dl-sy

[PATCH 1/3] NPTL/ARCv2: Implement full memory barrier for NPTL

2015-10-21 Thread Vineet Gupta
Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libc/sysdeps/linux/arc/bits/atomic.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/arc/bits/atomic.h b/libc/sysdeps/linux/arc/bits/atomic.h index d4abf4eb7896..1fdc83f70f6b 100644 ---

[PATCH 2/3] NPTL/ARC: fix __lll_lock_wait_private redefinition for static links

2015-10-21 Thread Vineet Gupta
Commit 2d9740a65a "uclibc: nptl: fix __lll_lock_wait_private multiple definition" did a sweeping change which did for all in tree arches at that time (ARC wasn't) Signed-off-by: Vineet Gupta <vgu...@synopsys.com> --- libpthread/nptl/sysdeps/unix/sysv/linux/arc/lowlevellock.c

Re: [PATCH] ARCv2: update memset() so it could be used without double load/stores

2015-10-20 Thread Vineet Gupta
entation checks if "-mno-ll64" option was passed to gcc > (for ARCv2 "-mll64" is set implicitly by default) by checking __LL64__ > definition and if it is not defined uses 32-bit load/stores. > > Signed-off-by: Claudiu Zissulescu <claz...@synopsys.com> > S

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-10-20 Thread Vineet Gupta
On Monday 21 September 2015 09:28 AM, Vineet Gupta wrote: >>>> >>> Assuming above is correct, you want those macros to be removed from >>>> >>> nptl/*/**/vfork.S as well as libc/sysdeps/linux/*/vfork.S and >>> >> preferably repla

Re: [PATCH v2 2/3] libc: fix sign extension in fallocate()

2015-09-23 Thread Vineet Gupta
On Wednesday 23 September 2015 03:18 PM, Yuriy Kolerov wrote: > I think it would be easier to call fallocate64 from fallocate: > > int attribute_hidden __libc_fallocate(int fd, int mode, __off_t offset, > __off_t len) > { > # if __WORDSIZE == 32 > return fallocate64(fd, mode, offset, len);

Re: [PATCH v2 1/3] libc: fix setting return value and errno in fallocate()

2015-09-22 Thread Vineet Gupta
On Tuesday 22 September 2015 11:46 PM, Yuriy Kolerov wrote: fallocate system call must return 0 on success. On error, -1 is returned and errno is set to indicate the error. However there is an error in fallocate which is fixed by this patch - it does not set errno and returns invalid value on

Re: [PATCH v2 2/3] libc: fix sign extension in fallocate()

2015-09-22 Thread Vineet Gupta
On Tuesday 22 September 2015 11:46 PM, Yuriy Kolerov wrote: > Arguments offset and len in fallocate system call in Linux > kernel have 64-bit types. Perhaps better to say that for common generic syscall ABI fallocate syscall handler in kernel expects 64 bit signed args for offset, len > However

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-09-20 Thread Vineet Gupta
On Thursday 17 September 2015 01:05 PM, Bernhard Reutner-Fischer wrote: > On September 17, 2015 12:09:17 AM GMT+02:00, Vineet Gupta > <vineet.gup...@synopsys.com> wrote: >> Hi Bernhard, >> >> >> On Tuesday 04 August 2015 01:42 AM, Vineet Gupta wrote: >>&

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-09-16 Thread Vineet Gupta
Hi Bernhard, On Tuesday 04 August 2015 01:42 AM, Vineet Gupta wrote: > On Friday 31 July 2015 12:23 AM, Bernhard Reutner-Fischer wrote: >> On July 24, 2015 9:17:27 AM GMT+02:00, Vineet Gupta >> <vineet.gup...@synopsys.com> wrote: >>> On Friday 24 July 2015 09:2

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-08-04 Thread Vineet Gupta
On Friday 31 July 2015 12:23 AM, Bernhard Reutner-Fischer wrote: On July 24, 2015 9:17:27 AM GMT+02:00, Vineet Gupta vineet.gup...@synopsys.com wrote: On Friday 24 July 2015 09:26 AM, Bernhard Reutner-Fischer wrote: On July 22, 2015 5:05:34 PM GMT+02:00, Alexey Brodkin alexey.brod

Re: [PATCH v2] nptl: remove duplicate vfork() in libpthread

2015-07-24 Thread Vineet Gupta
On Friday 24 July 2015 09:26 AM, Bernhard Reutner-Fischer wrote: On July 22, 2015 5:05:34 PM GMT+02:00, Alexey Brodkin alexey.brod...@synopsys.com wrote: Hi Bernard, This patch indeed fixes problems with duplicate vfork in both libc and libpthread. I'm wondering if there's a chance for this

[PATCH] NPTL/arc: notify kernel of the TP value

2015-06-30 Thread Vineet Gupta
---8--- Debugged-by: Anton Kolesov akole...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libpthread/nptl/sysdeps/arc/tls.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

Re: [PATCH] test/silly: Extend include path.

2015-05-08 Thread Vineet Gupta
-by: Vineet Gupta vgu...@synopsys.com Thx, -Vineet ___ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc

Re: [Buildroot] uClibc build verbosity control

2015-04-28 Thread Vineet Gupta
On Tuesday 28 April 2015 01:46 AM, Bernhard Reutner-Fischer wrote: On April 27, 2015 11:21:10 AM GMT+02:00, Waldemar Brodkorb w...@openadk.orgmailto:w...@openadk.org wrote: Hi Vineet, Vineet Gupta wrote, Hi, uClibc verbosity control V=xx is different from other mainstream projects

[PATCH] ARC: enable more options to satisfy build requirements of applications

2015-04-21 Thread Vineet Gupta
be built with ARC pre-built uClibc tools. Note UCLIBC_USE_NETLINK is a prerequisite for UCLIBC_SUPPORT_AI_ADDRCONFIG. Signed-off-by: Alexey Brodkin abrod...@synopsys.com Cc: Anton Kolesov akole...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs/defconfigs/arc

recent utmp fix

2015-03-31 Thread Vineet Gupta
Hi Bernhard, A recent upstream commit (see below) breaks default busybox builds as utmp is no longer available in our default configs. CC applets/applets.o In file included from include/busybox.h:8:0, from applets/applets.c:9: include/libbb.h:87:19: fatal error: utmp.h:

[PATCH 3/4] ARC/signal: shield sa_restorer from compiler toggle side-effects

2015-03-26 Thread Vineet Gupta
-and-Debugged-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sigaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/arc/sigaction.c b/libc/sysdeps/linux/arc/sigaction.c index 4a4c9e2d0821

[PATCH 2/4] ARC: switch to NPTL

2015-03-26 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs/defconfigs/arc/arcv2_defconfig | 2 +- extra/Configs/defconfigs/arc/defconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/Configs/defconfigs/arc/arcv2_defconfig b/extra/Configs/defconfigs/arc

[PATCH 4/4] ARC: don't hard-code ELF_NGREG

2015-03-26 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com [updated changelog] Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sys/procfs.h | 7 ++- 1 file changed, 2 insertions

[PATCH 1/4] Add support for R_ARC_NONE relocations.

2015-03-26 Thread Vineet Gupta
(named for each target). Handling R_ARC_NONE involves doing nothing with it, which is nice and easy. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- ldso/ldso/arc/elfinterp.c | 4 1 file changed, 4 insertions(+) diff --git a/ldso/ldso/arc/elfinterp.c b/ldso/ldso/arc/elfinterp.c index

[PATCH 0/4] ARC uClibc fixes

2015-03-26 Thread Vineet Gupta
Hi, Please consider merging the following fixes for ARC. Thx, -Vineet Alexey Brodkin (1): ARC: don't hard-code ELF_NGREG Andrew Burgess (1): Add support for R_ARC_NONE relocations. Vineet Gupta (2): ARC: switch to NPTL ARC/signal: shield sa_restorer from compiler toggle side-effects

Re: [PATCH 3/4] ARC/signal: shield sa_restorer from compiler toggle side-effects

2015-03-26 Thread Vineet Gupta
On Thursday 26 March 2015 04:49 PM, Bernhard Reutner-Fischer wrote: On 26 March 2015 at 09:55, Vineet Gupta vineet.gup...@synopsys.com wrote: when building uClibc with -O0 (DODEBUG build) the default sigrestorer had some extra glue code generated for stack manipulation which was messing up

[PATCH v2] ARC/signal: shield sa_restorer from compiler toggle side-effects

2015-03-26 Thread Vineet Gupta
-and-Debugged-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sigaction.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/arc/sigaction.c b/libc/sysdeps/linux/arc/sigaction.c index 4a4c9e2d0821

[PATCH] ARC: Remove unused EM_ARC_A5

2015-02-20 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- include/elf.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/elf.h b/include/elf.h index 917930b1811e..7c0ea020f456 100644 --- a/include/elf.h +++ b/include/elf.h @@ -258,7 +258,6 @@ typedef struct #define EM_MN10200 90

[PATCH] elf: Add STT_GNU_IFUNC from glibc

2015-02-20 Thread Vineet Gupta
perf in upstream Linux kernel 3.17 onwards expects STT_GNU_IFUNC replicate it from glibc Signed-off-by: Vineet Gupta vgu...@synopsys.com --- include/elf.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/elf.h b/include/elf.h index facf09cd5ca3..917930b1811e 100644 --- a/include

Re: [PATCH 0/4] uClibc port to ARCv2 ISA

2015-02-20 Thread Vineet Gupta
On Saturday 21 February 2015 01:21 AM, Max Filippov wrote: So xtensa will be hosed if we switched their sync_file_range to standard UCLIBC_SYSCALL_ALIGN_64BIT handling. @Max, @Baruch, cn u please at orig patch below, and see if we can remove __arc__ from there (I guess we can't) Looks

[PATCH v2 3/4] posix_fadvise: handle 2 variants for SYSCALL_ALIGN_64BIT

2015-02-19 Thread Vineet Gupta
the standard syscall handler in kernel. Fix that by providing 2 variants of SYSCALL_ALIGN_64BIT Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Baruch Siach bar...@tkos.co.il Cc: Max Filippov jcmvb...@gmail.com --- libc/sysdeps/linux/common/posix_fadvise.c | 10 +- libc/sysdeps/linux

[PATCH v2 2/4] ARCv2: optimised string routines

2015-02-19 Thread Vineet Gupta
From: Claudiu Zissulescu claz...@synopsys.com Signed-off-by: Claudiu Zissulescu claz...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/string/arc/arcv2/memcpy.S | 236 + libc/string/arc/arcv2/memset.S | 85 +++ libc

[PATCH v2 1/4] ARCv2 ISA support

2015-02-19 Thread Vineet Gupta
This is next gen Instruction Set Architecture from Synopsys and basis for the ARC HS family of processors. http://www.synopsys.com/dw/ipdir.php?ds=arc-hs38-processorelq_mid=5732elq_cid=458802 http://www.synopsys.com/IP/ProcessorIP/ARCProcessors/arc-hs/Pages/default.aspx Signed-off-by: Vineet

[PATCH v2 4/4] sync_file_range: fix standard UCLIBC_SYSCALL_ALIGN_64BIT handling

2015-02-19 Thread Vineet Gupta
Currently UCLIBC_SYSCALL_ALIGN_64BIT is not explicitly handled. Fix that and make sure the special handling is done for powerpc/xtensa which use UCLIBC_SYSCALL_ALIGN_64BIT but don't use hole punched syscall handler in kernel. Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Baruch Siach bar

[PATCH v2 0/4] uClibc port to ARCv2 ISA

2015-02-19 Thread Vineet Gupta
/uclibc/2015-February/048813.html Thx, -Vineet Claudiu Zissulescu (1): ARCv2: optimised string routines Vineet Gupta (3): ARCv2 ISA support posix_fadvise: handle 2 variants for SYSCALL_ALIGN_64BIT sync_file_range: fix standard UCLIBC_SYSCALL_ALIGN_64BIT handling Rules.mak

Re: [PATCH 0/4] uClibc port to ARCv2 ISA

2015-02-19 Thread Vineet Gupta
On Thursday 19 February 2015 02:34 AM, Bernhard Reutner-Fischer wrote: On February 18, 2015 1:11:03 PM GMT+01:00, Vineet Gupta vineet.gup...@synopsys.com wrote: Hi, Please find set of patches to support ARCv2 ISA basis of new HS family of cores from Synopsys. http://www.synopsys.com/dw

Re: [PATCH 0/8] ARC updates to uClibc

2015-02-18 Thread Vineet Gupta
On Wednesday 18 February 2015 01:33 PM, Bernhard Reutner-Fischer wrote: I would have assumed / hoped that GCC 5 should generate this 2nd variant for extern inline __syscall_rt_sigaction. Doesn't it do that? But __syscall_rt_sigaction is not inline - per include/signal.h is is extern extern

Re: [PATCH 0/8] ARC updates to uClibc

2015-02-18 Thread Vineet Gupta
On Wednesday 18 February 2015 01:33 PM, Bernhard Reutner-Fischer wrote: On February 18, 2015 6:51:17 AM GMT+01:00, Vineet Gupta vineet.gup...@synopsys.com wrote: On Monday 16 February 2015 08:34 PM, Bernhard Reutner-Fischer wrote: While it at I also did some arch specific adjustment

[PATCH 1/4] ARCv2 ISA support

2015-02-18 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- Rules.mak | 2 ++ extra/Configs/Config.arc | 6 extra/Configs/Config.in| 1 + extra/Configs/defconfigs/arc/arcv2_defconfig | 32

[PATCH 2/4] ARCv2: optimised string routines

2015-02-18 Thread Vineet Gupta
From: Claudiu Zissulescu claz...@synopsys.com Signed-off-by: Claudiu Zissulescu claz...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/string/arc/arcv2/memcpy.S | 236 + libc/string/arc/arcv2/memset.S | 85 +++ libc

[PATCH 0/4] uClibc port to ARCv2 ISA

2015-02-18 Thread Vineet Gupta
/o any out-of-tree patches. Please consider merging. Thx, -Vineet Claudiu Zissulescu (1): ARCv2: optimised string routines Vineet Gupta (3): ARCv2 ISA support posix_fadvise: handle 2 variants for SYSCALL_ALIGN_64BIT sync_file_range: fix for UCLIBC_SYSCALL_ALIGN_64BIT Rules.mak

[PATCH 3/4] posix_fadvise: handle 2 variants for SYSCALL_ALIGN_64BIT

2015-02-18 Thread Vineet Gupta
despite 64-bit even register requirement. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/common/posix_fadvise.c | 6 +- libc/sysdeps/linux/common/posix_fadvise64.c | 11 ++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common

[PATCH 4/4] sync_file_range: fix for UCLIBC_SYSCALL_ALIGN_64BIT

2015-02-18 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/common/sync_file_range.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/common/sync_file_range.c b/libc/sysdeps/linux/common/sync_file_range.c index 6cd7e94d6af6..b70db70f4d4b 100644

Re: [PATCH 0/8] ARC updates to uClibc

2015-02-17 Thread Vineet Gupta
On Monday 16 February 2015 08:34 PM, Bernhard Reutner-Fischer wrote: While it at I also did some arch specific adjustment in sigaction path - inlining the rt_sigaction syscall stub detour to reduce branch return stack mispredicts etc - which is what 6/8 does ! This sounds suspicious. IIRC we

[PATCH 5/8] ARC: siagction: opencode memcpy

2015-02-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sigaction.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libc/sysdeps/linux/arc/sigaction.c b/libc/sysdeps/linux/arc/sigaction.c index 73c496d2a814..a34c7cf4c556 100644 --- a/libc

[PATCH 1/8] ARC: Conditionalise certain relocations as provided by TLS tools only

2015-02-14 Thread Vineet Gupta
building the current upstream even for LT.old breaks. So conditionalize that code on tools, bu tin lack of specific versions, we use NPTL enabling as a sign the tools are equipped to handle those relos. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs/defconfigs/arc/defconfig

[PATCH 7/8] ARC: sigaction: fold default sigrestorer into C

2015-02-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/Makefile.arch | 3 +-- libc/sysdeps/linux/arc/sigaction.c | 14 +++--- libc/sysdeps/linux/arc/sigrestorer.S | 21 - 3 files changed, 8 insertions(+), 30 deletions(-) delete mode 100644 libc

[PATCH 4/8] ARC: remove stale TRUNCATE64_HAS_4_ARGS

2015-02-14 Thread Vineet Gupta
Not relevant anymore since commit e8cc14e59ed3f66b84e, libc: rename TRUNCATE64_HAS_4_ARGS to SYSCALL_ALIGN_64BIT Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/bits/uClibc_arch_features.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/libc/sysdeps/linux/arc

[PATCH 8/8] signal.h: elide memset from sigemptyset

2015-02-14 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- include/signal.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/signal.h b/include/signal.h index be24cf366292..38baaccfbc61 100644 --- a/include/signal.h +++ b/include/signal.h @@ -493,10 +493,7 @@ extern int

[PATCH 3/8] ARC defconfigs: enable some items

2015-02-14 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com perf: UCLIBC_HAS_GLIBC_CUSTOM_STREAMS elfutils: UCLIBC_HAS_PROGRAM_INVOCATION_NAME Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs/defconfigs/arc/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extra/Configs/defconfigs

[PATCH 2/8] ARC: add configuration option for MMU page size

2015-02-14 Thread Vineet Gupta
From: Alexey Brodkin abrod...@synopsys.com ARC CPU may have MMU page size of 4/8(default)/16k. uClibc needs to have page size configured accodring to HW it will be run on. Signed-off-by: Alexey Brodkin abrod...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs

Re: [PATCH] ARC: Add GNU glob to ARC defconfigs

2015-02-06 Thread Vineet Gupta
On Friday 06 February 2015 04:35 AM, Bernhard Reutner-Fischer wrote: On February 5, 2015 8:20:57 PM GMT+01:00, Rich Felker dal...@libc.org wrote: On Wed, Feb 04, 2015 at 03:58:41PM +, Anton Kolesov wrote: Now I've looked into more details of error cause and what happens is that those

[PATCH 1/5] ldso/ldso/arc/{dl-startup.h, dl-sysdep.h}: Use @pcl syntax.

2014-07-25 Thread Vineet Gupta
From: Joern Rennecke joern.renne...@embecosm.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- ldso/ldso/arc/dl-startup.h | 9 ++--- ldso/ldso/arc/dl-sysdep.h | 17 - 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ldso/ldso/arc/dl-startup.h b/ldso

[PATCH 3/5] ARC/NPTL: Fix __libc_sigaction redefinition with static links

2014-07-25 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- .../nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/arc/pt-__syscall_rt_sigaction.c b/libpthread/nptl/sysdeps/unix

[PATCH 4/5] ARC/NPTL: Add tests

2014-07-25 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- test/tls/tls-macros.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/test/tls/tls-macros.h b/test/tls/tls-macros.h index 3a9a21adcdf0..2787809f5b36 100644 --- a/test/tls/tls-macros.h +++ b/test/tls/tls

[PATCH 0/5] NPTL port to ARC

2014-07-25 Thread Vineet Gupta
Rennecke (1): ldso/ldso/arc/{dl-startup.h,dl-sysdep.h}: Use @pcl syntax. Vineet Gupta (4): NPTL: ARC support ARC/NPTL: Fix __libc_sigaction redefinition with static links ARC/NPTL: Add tests ARC/NPTL: clone to set TP if CLONE_SETTLS extra/Configs/defconfigs/arc/defconfig | 2

[PATCH 5/5] ARC/NPTL: clone to set TP if CLONE_SETTLS

2014-07-25 Thread Vineet Gupta
-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/clone.S | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libc/sysdeps/linux/arc/clone.S b/libc/sysdeps/linux/arc/clone.S index db5000caff96..3c1388ec7861 100644 --- a/libc/sysdeps/linux/arc/clone.S

[PATCH 2/5] NPTL: ARC support

2014-07-25 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- extra/Configs/defconfigs/arc/defconfig | 2 +- include/elf.h | 12 +- ldso/ldso/arc/dl-debug.h | 15 ++ ldso/ldso/arc/dl-sysdep.h | 9

Re: [PATCH] libc: posix_fadvise: Fix build breakage for !LFS

2014-07-22 Thread Vineet Gupta
On Thursday 12 June 2014 09:40 PM, Bernhard Reutner-Fischer wrote: On Tue, Apr 01, 2014 at 10:53:29AM +0530, Vineet Gupta wrote: Ping ^ 2 On Tuesday 04 February 2014 10:02 AM, Vineet Gupta wrote: Ping ! On Thursday 09 January 2014 03:05 PM, Vineet Gupta wrote: commit 00571b43df2e libc

[PATCH 0/6] ARC fixes/updates

2014-06-26 Thread Vineet Gupta
Hi Bernhard, Various accumulated fixes for ARC port. Please consider merging. Thx, -Vineet Anton Kolesov (1): ARC: Implement native GDB requirements in procfs.h Vineet Gupta (5): syscalls-common.h: Rename some macro args for correct documentation ARC: syscalls.h: code-reuse/fix-arg

[PATCH 1/6] syscalls-common.h: Rename some macro args for correct documentation

2014-06-26 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Mike Frysinger vap...@gentoo.org Cc: Denys Vlasenko vda.li...@googlemail.com --- libc/sysdeps/linux/common/bits/syscalls-common.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libc/sysdeps/linux/common/bits/syscalls

[PATCH 3/6] ARC: make sigaction inline with other arches

2014-06-26 Thread Vineet Gupta
Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sigaction.c | 5 + 1 file changed, 5 insertions(+) diff --git a/libc/sysdeps/linux/arc/sigaction.c b/libc/sysdeps/linux/arc/sigaction.c index a4bc5f34be87..73c496d2a814 100644 --- a/libc/sysdeps/linux/arc/sigaction.c

[PATCH 2/6] ARC: syscalls.h: code-reuse/fix-arg-annotations

2014-06-26 Thread Vineet Gupta
- Use syscalls-common.h vers of INTERNAL_SYSCALL / INLINE_SYSCALL_NOERR - INLINE_SYSCALL takes syscall name (e.g. write) - {INLINE,INTERNAL}_SYSCALL_NCS macros take syscall num (__NR_write) Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/bits/syscalls.h | 25

[PATCH 5/6] ARC: clone: Ensure that @fn returns back to clone

2014-06-26 Thread Vineet Gupta
This showed up due to longstanding test/unistd/clone failure where post clone, the callback was not exiting and rather falling thru in into main program. Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/clone.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH 6/6] ARC: Implement native GDB requirements in procfs.h

2014-06-26 Thread Vineet Gupta
that user_regs_struct has 20 registers, while it has 40. Signed-off-by: Anton Kolesov anton.kole...@synopsys.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/arc/sys/procfs.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/arc/sys/procfs.h

[PATCH] open64: ensure that openat check works

2014-06-19 Thread Vineet Gupta
For ARC builds atleast, __NR_xxx was not trickling into in open64.c causing open64-openat a needless detour via open Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/sysdeps/linux/common/open64.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libc/sysdeps/linux/common/open64.c b

[PATCH v3] LT.old: Make __errno_location/__h_errno_location thread safe

2014-04-16 Thread Vineet Gupta
...@busybox.net Signed-off-by: Vineet Gupta vgu...@synopsys.com --- Changes since v2 No code changes, added couple more lines to changelog Changes since v1 (http://lists.uclibc.org/pipermail/uclibc/2014-March/048273.html - Rebased to trunk - Added handling for h_errno_location Signed-off-by: Vineet Gupta

Re: [PATCH] weak symbols need to be defined weak but declared strong

2014-04-16 Thread Vineet Gupta
On Wednesday 16 April 2014 05:33 PM, Bernhard Reutner-Fischer wrote: Joern, Vineet, On 16 April 2014 12:36, Vineet Gupta vineet.gup...@synopsys.com wrote: Patch LT.old: Make __errno_location/__h_errno_location thread safe uncovered yet another bug with static linking and errno (hopefully

[PATCH v2] LT.old: Make __errno_location/__h_errno_location thread safe

2014-04-01 Thread Vineet Gupta
jeremy.benn...@embecosm.com Cc: Thomas Petazzoni thomas.petazz...@free-electrons.com Cc: Peter Korsgaard pe...@korsgaard.com Cc: Khem Raj raj.k...@gmail.com Cc: buildr...@busybox.net Signed-off-by: Vineet Gupta vgu...@synopsys.com --- Changes since v1 (http://lists.uclibc.org/pipermail/uclibc/2014

Re: [PATCH] ARC: Make vfork weak in libc

2014-03-31 Thread Vineet Gupta
Ping ! On Thursday 13 March 2014 06:08 PM, Vineet Gupta wrote: Anton reported: ---8- Package iperf cannot be built in Buildroot due to following error: /home/akolesov/env/autobuild/tmp/host/usr/bin/arc-buildroot-linux-uclibc-g++ -Wall

Re: [PATCH] LT.old: Make errno_location thread safe

2014-03-31 Thread Vineet Gupta
On Thursday 13 March 2014 09:55 AM, Vineet Gupta wrote: On Thursday 13 March 2014 01:33 AM, Bernhard Reutner-Fischer wrote: On Wed, Mar 12, 2014 at 02:20:20PM +, Vineet Gupta wrote: On Wednesday 12 March 2014 07:42 PM, Peter Korsgaard wrote: That sounds pretty much like: http

Re: [PATCH] libc: posix_fadvise: Fix build breakage for !LFS

2014-03-31 Thread Vineet Gupta
Ping ^ 2 On Tuesday 04 February 2014 10:02 AM, Vineet Gupta wrote: Ping ! On Thursday 09 January 2014 03:05 PM, Vineet Gupta wrote: commit 00571b43df2e libc: posix_fadvise: restore implementation for xtensa enabled posix_fadvise() for all arches (it was just not generated before

Re: Switching from uClibc to glibc as the default in Buildroot?

2014-03-13 Thread Vineet Gupta
On Thursday 13 March 2014 01:54 AM, Bernhard Reutner-Fischer wrote: On Fri, Mar 07, 2014 at 09:07:27AM +0100, Thomas De Schampheleire wrote: Hi all, On Wed, Feb 19, 2014 at 9:32 AM, Peter Korsgaard jacmet-2zl2arbv0budnm+yrof...@public.gmane.org wrote: Thomas == Thomas Petazzoni

[PATCH] ARC: Make vfork weak in libc

2014-03-13 Thread Vineet Gupta
/sysroot/usr/lib/libpthread.a(ptfork.os):ptfork.c:(.text+0xc0): first defined here collect2: error: ld returned 1 exit status ---8- Signed-off-by: Vineet Gupta vgu...@synopsys.com Cc: Anton Kolesov anton.kole...@synopsys.com Cc: Francois Bedard francois.bed

[PATCH] LT.old: Make errno_location thread safe

2014-03-12 Thread Vineet Gupta
francois.bed...@synopsys.com Cc: Joern Rennecke joern.renne...@embecosm.com Cc: Jeremy Bennett jeremy.benn...@embecosm.com Signed-off-by: Vineet Gupta vgu...@synopsys.com --- libc/misc/internals/__errno_location.c | 1 - libc/sysdeps/linux/common/bits/errno.h | 3 --- 2 files changed, 4 deletions(-) diff

Re: [PATCH] LT.old: Make errno_location thread safe

2014-03-12 Thread Vineet Gupta
On Wednesday 12 March 2014 07:42 PM, Peter Korsgaard wrote: That sounds pretty much like: http://lists.uclibc.org/pipermail/uclibc/2010-July/044176.html Which afaik never got committed. Indeed and the changelog is one million times better than mine :-) So looking back at the orig bug log,

Re: [PATCH] LT.old: Make errno_location thread safe

2014-03-12 Thread Vineet Gupta
On Thursday 13 March 2014 01:33 AM, Bernhard Reutner-Fischer wrote: On Wed, Mar 12, 2014 at 02:20:20PM +, Vineet Gupta wrote: On Wednesday 12 March 2014 07:42 PM, Peter Korsgaard wrote: That sounds pretty much like: http://lists.uclibc.org/pipermail/uclibc/2010-July/044176.html Which afaik

  1   2   >