[PATCH] Implement clock()

2017-09-05 Thread Sebastian Huber
Newlib uses _times_r() in clock(). The problem is that the _times_r() clock frequency is defined by sysconf(_SC_CLK_TCK). The clock frequency of clock() is the constant CLOCKS_PER_SEC. FreeBSD uses getrusage() for clock(). Since RTEMS has only one process, the implementation can be simplified.

[PATCH] Testsuite for inttypes methods.

2017-09-05 Thread Aditya Upadhyay
--- testsuites/psxtests/psxinttypes01/Makefile.am | 22 + testsuites/psxtests/psxinttypes01/init.c | 107 + .../psxtests/psxinttypes01/psxinttypes01.scn | 11 +++ 3 files changed, 140 insertions(+) create mode 100644 testsuites/psxtests/psxinttypes01

[PATCH] libio: Remove special-case reference count

2017-09-05 Thread Sebastian Huber
The top-level IO library structures should contain no special-case data. Update #2859. --- cpukit/libcsupport/include/rtems/libio.h| 1 - cpukit/libcsupport/include/rtems/libio_.h | 41 - cpukit/libcsupport/src/libio.c | 32 ++ c

Re: How to align ARM BSP .data section on 4K boundary

2017-09-05 Thread Sebastian Huber
On 26/08/17 23:31, Joel Sherrill wrote: Hi Using the shared linkcmds, what's the magic to get .data on a 4K boundary? Maybe you can add a empty array with a 4KiB alignment attribute. If you want to place all read-write data on a 4KiB boundary, then use bsp_section_rwbarrier_align = 4096; -

Re: x86 get TLS method

2017-09-05 Thread Sebastian Huber
On 28/08/17 17:26, Joel Sherrill wrote: My question is what's the generic way to get the TLS area for a thread? Is the ARM method in C specific to the ARM or generic? See https://www.akkadia.org/drepper/tls.pdf there are some variants. -- Sebastian Huber, embedded brains GmbH Address : Dor

Re: [PATCH v2] Testsuite of inttypes methods.

2017-09-05 Thread Joel Sherrill
Unless I am doing something wrong, this is a diff to code which has not been merged. Can you send a complete patch with the entire contents of the psxinttypes01 directory? Sorry for being slow. It was a long holiday weekend here. --joel On Sat, Sep 2, 2017 at 11:45 AM, Aditya Upadhyay wrote: