[PATCH 00/12] Meta uClibc port

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Hi, This patchset adds support for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores in uClibc. Meta cores are 32-bit, hardware multithreaded, general purpose, embedded processors which also feature a DSP instruction set, and can

[PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/not-cancel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/sysdeps/linux/common/not-cancel.h

[PATCH 02/12] libc/pause: Add __pause_not_cancel weak alias.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com On architectures that don't provide __NR_pause __pause_nocancel is needed when wanting to perform an uncancelable pause. Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/common/pause.c | 4 ++-- 1 file changed, 2

[PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libpthread/nptl/Makefile.in b/libpthread/nptl/Makefile.in index 158bcae..0008822 100644

[PATCH 05/12] elf: Add ELF magic number and relocations for the Meta architecture

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- include/elf.h | 44 1 file changed, 44 insertions(+) diff --git a/include/elf.h b/include/elf.h index d70cafe..877d081 100644 ---

[PATCH 04/12] nptl/allocatestack.c: Fix stack mprotect alignment for STACK_GROWS_UP

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com mprotect() expects the first argument to be aligned to a page boundary. Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl/allocatestack.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 06/12] ldd: Add MATCH_MACHINE definition for Meta

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- utils/ldd.c | 5 + 1 file changed, 5 insertions(+) diff --git a/utils/ldd.c b/utils/ldd.c index e53f360..a95e569 100644 --- a/utils/ldd.c +++ b/utils/ldd.c @@ -63,6 +63,11 @@

[PATCH 08/12] libm: Add support for the Meta architecture

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libc/sysdeps/linux/metag/bits/fenv.h | 77 ++ libc/sysdeps/linux/metag/metag.c | 1 + libm/metag/Makefile.arch | 24 ++

[PATCH 09/12] metag: Add support for loading shared objects into core memories.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- ldso/ldso/metag/dl-inlines.h | 38 ++ ldso/ldso/metag/dl-sysdep.h | 25 + 2 files changed, 63 insertions(+) create mode

[PATCH 10/12] extra/locale: Mark __codeset_8_bit_t as packed for Meta

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com gen_ldc writes offsets into the __locale_mmap_t structure. This relies on the host system having the same struct offsets as the target. On Meta, the structs are always aligned to a multiple of 4 bytes, and for these targets it is required for the

[PATCH 12/12] sched_setaffinity: Don't use function calls as arguments to INTERNAL_SYSCALL.

2013-02-21 Thread Markos Chandras
From: Markos Chandras markos.chand...@imgtec.com This patch fixes a bug in sched_setaffinity() for Meta where the affinity argument was ignored when trying to set a process's scheduling affinity. INTERNAL_SYSCALL places its arguments in the argument registers in preparation for a system call,

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Bernhard Reutner-Fischer
On 21 February 2013 11:11, Markos Chandras markos.chand...@gmail.com wrote: # define pause_not_cancel() \ INLINE_SYSCALL (pause, 0) -/*#else +#else # define pause_not_cancel() \ - __pause_nocancel ()*/ + __pause_nocancel () #endif Where does that __pause_nocancel impl come from

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Markos Chandras
On 21 February 2013 13:53, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:11, Markos Chandras markos.chand...@gmail.com wrote: # define pause_not_cancel() \ INLINE_SYSCALL (pause, 0) -/*#else +#else # define pause_not_cancel() \ - __pause_nocancel ()*/

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Bernhard Reutner-Fischer
On 21 February 2013 11:12, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com --- libpthread/nptl/Makefile.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Re: [PATCH 00/12] Meta uClibc port

2013-02-21 Thread Markos Chandras
On 21 February 2013 10:11, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Hi, This patchset adds support for Imagination's Meta ATP (Meta 1) and HTP (Meta 2) processor cores in uClibc. Meta cores are 32-bit, hardware multithreaded, general

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Bernhard Reutner-Fischer
On 21 February 2013 14:58, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 13:53, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:11, Markos Chandras markos.chand...@gmail.com wrote: # define pause_not_cancel() \ INLINE_SYSCALL (pause, 0)

Re: [PATCH 12/12] sched_setaffinity: Don't use function calls as arguments to INTERNAL_SYSCALL.

2013-02-21 Thread Bernhard Reutner-Fischer
On 21 February 2013 11:12, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com This patch fixes a bug in sched_setaffinity() for Meta where the affinity argument was ignored when trying to set a process's scheduling affinity. INTERNAL_SYSCALL

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:12, Markos Chandras markos.chand...@gmail.com wrote: From: Markos Chandras markos.chand...@imgtec.com Signed-off-by: Markos Chandras markos.chand...@imgtec.com ---

Re: [PATCH 01/12] libc/not-cancel.h: Enable pause_not_cancel for arches without __NR_pause

2013-02-21 Thread Markos Chandras
On 21 February 2013 14:14, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 14:58, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 13:53, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 11:11, Markos Chandras

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Bernhard Reutner-Fischer
On 21 February 2013 16:07, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: + -Wl,-z,nodelete,-z,initfirst,-init=$(SYMBOL_PREFIX)__pthread_initialize_minimal_internal mhm. I am curious on which arch you

Re: [PATCH 03/12] nptl/Makefile.in: Append $(SYMBOL_PREFIX) to symbol names

2013-02-21 Thread Markos Chandras
On 21 February 2013 15:23, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: On 21 February 2013 16:07, Markos Chandras markos.chand...@gmail.com wrote: On 21 February 2013 14:03, Bernhard Reutner-Fischer rep.dot@gmail.com wrote: +