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.
---
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
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
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;
-
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
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: