Martin Galvan
cc93c83e00
cpukit/libmisc/dumpbuf/dumpbuf.c: Fix undefined behavior for sprintf()
...
I also used the 'n' versions of the string functions, #define'd magic numbers
and added a few comments.
Updates #2405 .
2015-09-03 12:33:28 -05:00
Martin Galvan
9147a825d6
tools/cpu/nios2/ptf.c: Fix leak of memory pointed to by new_prefix
...
Updates #2405 .
2015-09-03 12:33:25 -05:00
Martin Galvan
c83bad2fc4
cpukit/libnetworking/rtems/rtems_dhcp.c: Fix leak on realloc failure for dhcp_hostname.
...
Closes #2405 .
2015-09-03 11:28:10 -05:00
Martin Galvan
17f71fc780
tools/cpu/nios2/memory.c: Fix uninitialized use of variable memory
...
Updates #2405 .
2015-09-03 11:28:06 -05:00
Martin Galvan
7def219b84
various .h files: Add missing C++ extern wrappers
...
Updates #2405 .
2015-09-03 11:28:04 -05:00
Sebastian Huber
f820227372
JFFS2: Use RTEMS red-black tree implementation
2015-09-03 14:00:26 +02:00
Sebastian Huber
edf640f8cf
rbtree: Add _RBTree_Replace_node()
2015-09-03 13:58:24 +02:00
Sebastian Huber
e9fbaa3b48
rbtree: Replace implementation
...
Use the BSD <sys/tree.h> implementation since it is faster, more
flexible and uses less storage. See https://github.com/sebhub/rb-bench .
2015-09-03 13:58:16 +02:00
Sebastian Huber
8c25e04606
score: Optimize thread queue first operation
...
In case the thread queue heads exist, then the queue is not empty. See
_Thread_queue_First_locked().
2015-09-02 15:02:27 +02:00
Sebastian Huber
3b3d1489e4
posix: glibc compatibility
2015-09-02 14:05:02 +02:00
Sebastian Huber
d9d0a84f85
psxtests/psxcancel: Check return status
...
Update #2402 .
2015-09-01 14:07:51 +02:00
Sebastian Huber
44f3ea917f
score: Fix return status of mutex try acquire
...
This fixes a copy and paste error (from libbsd).
2015-09-01 12:50:56 +02:00
Sebastian Huber
95b43d0dde
arm: Replace __sync_synchronize() implementation
2015-09-01 09:59:26 +02:00
Sebastian Huber
39e3e20140
arm: Use compiler memory barrier by default
2015-09-01 09:59:18 +02:00
Sebastian Huber
509e8d7f4d
rbtree: Delete rtems_rbtree_find_control()
...
This function is hard to support in alternative implementations. It has
no internal use case.
2015-09-01 09:07:08 +02:00
Sebastian Huber
f71e67dc56
rbtree: Delete unused RBTREE_NODE_*() macros
2015-08-31 09:59:42 +02:00
Sebastian Huber
ddb6a49bdf
rbtree: Delete _RBTree_Initialize()
...
This function has no internal use case.
2015-08-31 09:59:42 +02:00
Sebastian Huber
b9877ee03d
rbtree: Delete _RBTree_Get()
...
This function has no internal use case.
2015-08-31 09:59:42 +02:00
Sebastian Huber
2d48456ef5
rbheap: Drop direction from _RBTree_Iterate()
2015-08-31 09:59:42 +02:00
Sebastian Huber
3f49446e54
rbtree: Delete _RBTree_Is_first()
2015-08-31 09:59:41 +02:00
Sebastian Huber
341f629614
rbtree: Add _RBTree_Minimum(), _RBTree_Maximum()
2015-08-31 09:59:41 +02:00
Sebastian Huber
d7c93070cc
sptests/sprbtree01: Avoid internal API
2015-08-31 09:56:55 +02:00
Sebastian Huber
d128b4f2ed
sptests/sprbtree01: Fix random ops test case
2015-08-31 09:56:55 +02:00
Sebastian Huber
c72f1322d2
rbheap: Avoid internal API
2015-08-31 09:56:55 +02:00
Sebastian Huber
1f242285df
posix: Avoid _RBTree_Next()
2015-08-31 09:56:55 +02:00
Ketul Shah
151e53feab
Beagle: GPIO support (for BBB)
...
GPIO Driver Development for BeagleBone Black based on the generic GPIO API
2015-08-18 17:05:55 +02:00
Andre Marques
b09a578e8a
Closes ticket #2390 , and also updates the RPI implementation.
...
makes rtems_gpio_bsp_get_value return uint32_t. Motivation: simplify
beagle gpio implementation for common gpio apio.
2015-08-18 02:26:48 +02:00
Andre Marques
61e7c698a4
Raspberry Pi implementation for the RTEMS GPIO API.
...
Added support for the new RTEMS GPIO API functions.
Test cases can be found in https://github.com/asuol/RTEMS_rpi_testing/tree/master/GPIO
2015-08-06 10:53:46 -04:00
Andre Marques
87f8b01f58
RTEMS GPIO API definition and implementation.
...
Changes relative to the previous patch set:
- Moved GPIO pin interrupts to rtems chains, instead of a local linked list;
- Restructured the pin tracking structure, separating the interrupt information for each pin meaning that a pin without any interrupt enabled only requires 8 bytes, while keeping interrupt information (handling information, handler chain control, ...) requires 24 additional bytes (total of 32 bytes per pin with interrupts enabled);
- Added support for 'parallel' pin function assignment, allowing the function assignment to be set for multiple pins in a single GPIO hardware call. If a BSP does not support this feature it becomes a sequence of individual calls per pin. Also added support for GPIO pin groupings, allowing to write and read byte data to a series of pins which behave as a single entity;
- Added bank tracking structure to maintain the bank lock and bank level interrupt information (threaded/normal handling, interrupt counter);
- Changed GPIO settings to BSP defined constants, reducing dynamic memory allocation;
- Switched interrupt tasks for a rtems interrupt server, with the possibility of using normal interrupts (user handlers being called within ISR context).
2015-08-06 10:53:37 -04:00
Nick Withers
040ddd23b5
Respect 2^32 - 1 B NFSv2 maximum file size
...
closes #2384
2015-08-06 10:49:37 -04:00
Joel Sherrill
add0e494ef
user/c_user.texi: Correct info index entry
...
closes #2380 .
2015-08-03 09:34:40 -07:00
Joel Sherrill
d138a22b54
ada-tests/support/init.c: Fix compile errors and warnings
...
closes #2379 .
2015-08-02 08:31:09 -07:00
Jan Sommer
7e798b4758
Add __synch_synchronize function for arm
...
Fixes link failure when linking Ada programs on the raspberry pi
2015-08-01 10:19:40 -07:00
Nick Withers
f8cf567095
ampolish3: Use env to find perl more reliably
...
Fixes breakage on at least FreeBSD.
closes #2379 .
2015-08-01 09:58:56 -07:00
Sebastian Huber
d0733bb871
bsps/arm: Do not use __ARM_ARCH_7A__
...
This would lead to link-time errors in case less specialized compiler
machine options are used, e.g. to run the GCC test suite.
2015-07-31 09:58:48 +02:00
Sebastian Huber
9e9e61d27d
score: Add self-contained condition implementation
2015-07-30 09:11:18 +02:00
Sebastian Huber
a1b4af4bba
score: Add scheduler <sys/lock.h> support
2015-07-30 09:11:18 +02:00
Sebastian Huber
40188718f2
score: Add self-contained futex implementation
2015-07-30 09:11:18 +02:00
Sebastian Huber
7237b3e076
score: Add self-contained semaphore implementation
2015-07-30 09:11:18 +02:00
Sebastian Huber
214d8edd18
score: Add self-contained mutex implementation
...
This mutex implementation uses a thread priority queue with a simple
priority inheritance mechanism (similar to the object based mutexes).
The storage space must be supplied by the user (16 bytes on 32-bit
targets).
2015-07-30 09:11:18 +02:00
Sebastian Huber
12f93fbb13
score: Add thread queue for self-contained objects
2015-07-30 09:11:17 +02:00
Sebastian Huber
0e3c59d65c
score: Use a plain ticket lock for thread locks
...
This enables external libraries to use thread locks since they are
independent of the actual RTEMS build configuration, e.g. profiling
enabled or disabled.
2015-07-30 09:11:13 +02:00
Sebastian Huber
10e32a2634
score: Add potpourri lock statistics
...
These SMP lock statistics are used for all lock objects that lack a
storage space for the statistics. Examples are lock objects used in
external libraries which are independent of the actual RTEMS build
configuration.
2015-07-30 08:06:01 +02:00
Sebastian Huber
e421936bbb
score: Provide struct _Thread_queue_Heads
...
Use a leading underscore in the structure name to allow forward
declarations in standard header files provided by Newlib and GCC.
2015-07-30 08:06:01 +02:00
Sebastian Huber
48274706a7
score: Rename struct Thread_Control
...
Add a leading underscore to the structure name to allow forward
declarations in standard header files provided by Newlib and GCC.
2015-07-30 08:06:00 +02:00
Michael Davidsaver
74ef2c101a
tftpDriver: close() false error
...
closes #2376 .
2015-07-29 10:56:14 -05:00
Sebastian Huber
21789a2117
score: Rename _POSIX_Absolute_timeout_to_ticks()
...
Rename _POSIX_Absolute_timeout_to_ticks() to
_TOD_Absolute_timeout_to_ticks() and move it to the score directory.
Delete empty <rtems/posix/time.h>.
2015-07-28 14:54:51 +02:00
Sebastian Huber
f7d95581c8
m68k: Include proper header file
2015-07-24 10:47:25 +02:00
Sebastian Huber
9c53910190
score: Add comment
2015-07-24 09:13:31 +02:00
Sebastian Huber
9780fa937c
monitor: Sort alphabetically
2015-07-24 09:09:18 +02:00