Sebastian Huber
ca4602e914
Use linker set for libio initialization
...
Update #2408 .
2016-02-03 10:00:57 +01:00
Sebastian Huber
f64c6b4c49
Use atexit() handler to close std file descriptors
2016-02-03 10:00:57 +01:00
Sebastian Huber
3d36164fe5
Use linker set for root file system initialization
...
Update #2408 .
2016-02-03 10:00:57 +01:00
Sebastian Huber
e079b33e76
Filesystem: Export most generic path eval function
...
Add path length parameter to
rtems_filesystem_eval_path_start_with_root_and_current() so that users
may pass paths without a '\0' termination.
Update #2558 .
2016-02-02 08:06:10 +01:00
Joel Sherrill
f5201df0dc
Remove M32R architecture
...
updates #2446 .
2016-01-04 11:07:00 -06:00
Aun-Ali Zaidi
d5154d0f6a
api: Remove deprecated Notepads
...
Notepads where a feature of RTEMS' tasks that simply functioned in
the same way as POSIX keys or threaded local storage (TLS). They were
introduced well before per task variables, which are also deprecated,
and were barely used in favor of their POSIX alternatives.
In addition to their scarce usage, Notepads took up unnecessary memory.
For each task:
- 16 32-bit integers were allocated.
- A total of 64 bytes per task per thread.
This is especially critical in low memory and safety-critical applications.
They are also defined as uint32_t, and therefore are not guaranteed to
hold a pointer.
Lastly, they are not portable solutions for SMP and uniprocessor systems,
like POSIX keys and TLS.
updates #2493 .
2015-12-24 16:52:34 -06:00
Sebastian Huber
50552818d7
Delete unused declarations and define
2015-11-27 07:25:01 +01:00
Sebastian Huber
443c61ec94
Delete empty libc_init()
2015-11-27 07:24:51 +01:00
Sebastian Huber
ac5f2442e3
Require __getreent()
...
This function is used by Newlib since 2013-07-09 (Git commit
9b51cd8c6b9cdd067d9648a7ab952884019c56a5).
2015-11-25 08:33:31 +01:00
Sebastian Huber
8f3ec7c0d9
Import latest <sys/ttycom.h> from FreeBSD
...
Required by new network stack.
2015-11-17 15:22:18 +01:00
Sebastian Huber
f757bb7c4b
Merge with latest <sys/sockio.h> from FreeBSD
...
Required by new network stack.
2015-11-17 15:12:34 +01:00
Sebastian Huber
836803f72a
Import latest <sys/filio.h> from FreeBSD
...
Required by new network stack.
2015-11-17 14:57:47 +01:00
Sebastian Huber
f97536dcd3
basdefs.h: Add and use RTEMS_UNUSED
2015-10-26 09:13:19 +01:00
Sebastian Huber
143696acbd
basedefs.h: Add and use RTEMS_NO_RETURN
2015-10-26 09:13:19 +01:00
Sebastian Huber
2d48456ef5
rbheap: Drop direction from _RBTree_Iterate()
2015-08-31 09:59:42 +02:00
Sebastian Huber
d7665823b2
score: Introduce Thread_queue_Heads
...
Move the storage for the thread queue heads to the threads. Each thread
provides a set of thread queue heads allocated from a dedicated memory
pool. In case a thread blocks on a queue, then it lends its heads to
the queue. In case the thread unblocks, then it takes a free set of
threads from the queue. Since a thread can block on at most one queue
this works. This mechanism is used in FreeBSD. The motivation for this
change is to reduce the memory demands of the synchronization objects.
On a 32-bit uni-processor configuration the Thread_queue_Control size is
now 8 bytes, compared to 64 bytes in RTEMS 4.10 (other changes reduced
the size as well).
2015-07-23 08:01:13 +02:00
Sebastian Huber
c5d0ca91cf
libcsupport: Workaround for GCC 5.1 and later
...
Disable an optimization which would lead to a recursive calloc() call in
calloc().
2015-07-15 08:46:36 +02:00
Sebastian Huber
48fed9a56e
score: Simplify <rtems/system.h>
...
Drop the <rtems/score/percpu.h> include since this file exposes a lot of
implementation details.
2015-06-26 09:16:25 +02:00
Joel Sherrill
e6b31b27fb
Remove use ticks for statistics configure option.
...
This was obsolete and broken based upon recent time keeping changes.
Thie build option was previously enabled by adding
USE_TICKS_FOR_STATISTICS=1 to the configure command line.
This propagated into the code as preprocessor conditionals
using the __RTEMS_USE_TICKS_FOR_STATISTICS__ conditional.
2015-06-15 13:20:17 -05:00
Joel Sherrill
221031ec9f
kill_noposix.c: Remove obsolete __kill()
2015-05-21 08:28:54 -07:00
Sebastian Huber
776a50c47a
Filesystem: Thread life protection for env changes
2015-05-19 12:00:44 +02:00
Sebastian Huber
4a3c920d30
libcsupport: Fix umask() locking
...
Delete comment related to an obsolete implementation of
rtems_libio_set_private_env().
2015-05-19 12:00:44 +02:00
Sebastian Huber
2b0bbc4a65
libcsupport: Avoid Giant lock in rtems_verror()
2015-05-19 12:00:44 +02:00
Sebastian Huber
c07c85f4f2
Filesystem: Use lock for deferred release
2015-05-19 12:00:44 +02:00
Sebastian Huber
5f7f469a96
libcsupport: Avoid Giant lock in _times()
2015-05-19 12:00:43 +02:00
Sebastian Huber
1a6683aa57
libcsupport: Include missing header file
2015-03-26 21:37:33 +01:00
Sebastian Huber
1f671565ab
libcsupport: Delete superfluous _gettimeofday()
2015-03-10 08:56:06 +01:00
Joel Sherrill
1aa7b8beb1
Move contents of libcsupport/include/zilog into libbsp/shared
...
Only a few BSPs use this and it should not have been in libcsupport.
2015-03-09 16:15:14 -05:00
Joel Sherrill
6796d9cd69
Remove unused cpukit/libcsupport/include/zilog/z8536.h
2015-03-09 16:15:14 -05:00
Joel Sherrill
5bc6237a36
Move libcsupport/include/motorola/*.h to m68k/idp BSP
...
These header files were only used by one BSP and they are
hardware dependent. The hardware dependency always made
them bad candidates for where they were in the tree. But
this fixes that.
2015-03-09 16:15:14 -05:00
Joel Sherrill
2468aa3dff
vprintk.c: Reorder switch and add default to eliminate warning
2015-03-09 16:14:17 -05:00
Joel Sherrill
a7e4de2504
Fix even more Doxygen issues
2015-03-06 14:33:08 -06:00
Sebastian Huber
5b5d2fd4f2
Filesystem: Delete unused null_op_fsmount_me()
2015-03-05 09:37:36 +01:00
Gedare Bloom
76f37656a2
libcsupport: scale times() call to microseconds
2015-03-04 15:38:52 -05:00
Nick Withers
5eb27ce409
Don't fail to create passwd and group files if /etc already exists
2015-02-20 08:56:25 +01:00
Sebastian Huber
353506b93e
sys/event.h: Update to FreeBSD 9.3
2015-02-13 10:48:35 +01:00
Sebastian Huber
eb7753437f
Filesystem: Delete unused fsmountme_h handler
2015-02-09 15:38:48 +01:00
Sebastian Huber
4c14ace6dd
Add rtems_filesystem_make_dev_t_from_pointer()
2015-02-04 19:31:52 +01:00
Sebastian Huber
efd2965abf
Filesystem: Statically initialize rtems_libio_iops
2015-02-04 14:03:49 +01:00
Sebastian Huber
ec0f2df19b
Filesystem: Use rtems_libio_iop_to_descriptor()
...
Drop parameter check from previously unused
rtems_libio_iop_to_descriptor().
2015-02-04 14:03:49 +01:00
Sebastian Huber
97db9e3030
Filesystem: Delete rtems_libio_last_iop
2015-02-04 14:03:49 +01:00
Sebastian Huber
ead010cd3c
Filesystem: Make rtems_libio_number_iops const
2015-02-04 14:03:49 +01:00
Sebastian Huber
c625a64121
Filesystem: Delete node type operation
...
Use the fstat handler instead.
2015-01-22 07:52:40 +01:00
Sebastian Huber
25e5f616fe
libcsupport: Do not use _Assert() for sync()
...
Use a best-effort approach.
2014-12-12 13:16:29 +01:00
Sebastian Huber
7bdb765a67
Add POSIX key value pairs to resource snapshot
2014-12-12 13:16:28 +01:00
Sebastian Huber
2c3c657625
score: Return heap stats via _Heap_Get_information
...
Print out heap statistics via the MALLOC and WKSPACE shell commands.
2014-11-28 13:09:07 +01:00
Sebastian Huber
01557b0c6e
libcsupport: Delete malloc statistics
...
Use the heap handler statistics instead. Add heap walk option to MALLOC
shell command.
close #1367
2014-11-28 11:23:53 +01:00
Joel Sherrill
e22af784cd
sync.c: Add asserts to document and check assumptions
2014-11-27 10:06:23 -06:00
Sebastian Huber
038faca160
rtems: Add rtems_cache_coherent_allocate()
...
Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area().
2014-11-27 10:33:30 +01:00
Josh Oguin
72f63eeff0
libcsupport/src/newlibc_exit.c: Remove dead code
...
This was flagged as an empty for statement by CodeSonar but is actually
unreachable code that should be removed.
2014-11-26 07:51:58 -06:00