Commit Graph

28381 Commits

Author SHA1 Message Date
Sebastian Huber
cff773f580 libstdthreads: Add C11 threads 2015-10-14 07:47:12 +02:00
Sebastian Huber
e3330899f3 libstdthreads: Import from FreeBSD 2015-10-14 07:47:12 +02:00
Sebastian Huber
27390a29a5 bsps/arm: Add missing translation table entry
See also bc82094679.
2015-10-14 07:46:23 +02:00
Sebastian Huber
cf8e03388b bsp/qoriq: Add nocache heap 2015-10-08 13:35:27 +02:00
Sebastian Huber
bc82094679 bsps: Add .nocacheheap section
This avoids consumption of a loadable address space for the nocache
heap.
2015-10-08 13:34:40 +02:00
Sebastian Huber
707ecbe4ec bsp/qoriq: Add BMan and QMan Portals 2015-10-07 13:53:15 +02:00
Sebastian Huber
01531fb6a7 bsp/qoriq: Initilize FPU 2015-10-07 13:38:59 +02:00
Sebastian Huber
55c8d19d7b bsp/qoriq: Move BUCSR initialization 2015-10-07 09:52:04 +02:00
Sebastian Huber
6959e663e4 epiphany: Delete CPU_UNROLL_ENQUEUE_PRIORITY 2015-10-07 09:13:23 +02:00
Sebastian Huber
ba1ed5240b SMP: Optimize ticket lock implementation
This reverts the relevant part of commit
da06fe948c.  The acquire/release order is
superfluous for the next ticket increment.  The mutual exclusion is
guaranteed by the acquire load from and release store to the next
serving atomic variable.
2015-10-02 08:05:21 +02:00
Sebastian Huber
08317ef3ff powerpc: Use wrtee for e6500 multilib
This reduces the code size.
2015-10-02 07:30:13 +02:00
Sebastian Huber
f91fbbf4b8 bsps/i386: Interrupt server support 2015-09-30 15:30:09 +02:00
Sebastian Huber
258ad71e96 SMP: Fix and optimize thread dispatching
According to the C11 and C++11 memory models only a read-modify-write
operation guarantees that we read the last value written in modification
order.  Avoid the sequential consistent thread fence and instead use the
inter-processor interrupt to set the thread dispatch necessary
indicator.
2015-09-28 13:56:57 +02:00
Sebastian Huber
aee6a1d05f SMP: Simplify thread lock operations 2015-09-28 07:45:54 +02:00
Sebastian Huber
8d296cd54e score: Use uintptr_t for atomic pointer operations
Do not obfuscate the standard API.
2015-09-26 21:23:53 +02:00
Gedare Bloom
5458bff929 bootstrap: regenerate preinstall.am 2015-09-25 16:36:52 -04:00
Andre Marques
7aca0fefce RaspberryPi: Added I2C and SPI bus support.
Further documentation can be found in

https://devel.rtems.org/wiki/GSoC/2015/RaspberryPi_peripherals_and_SD_card

and test data (including sample user applications, device drivers and wiring schemes) can be found in

https://github.com/asuol/RTEMS_rpi_testing
2015-09-25 16:36:52 -04:00
Andre Marques
f7ea9579ad Added GPIO API sources to rpi Makefile 2015-09-25 16:36:52 -04:00
Andre Marques
a57b72ded9 Removed GPIO API from the libbsp/shared Makefile. 2015-09-25 16:36:52 -04:00
Sebastian Huber
1f7c5c88ca score: Fix atomic compare exchange 2015-09-25 21:48:24 +02:00
Martin Galvan
f52885b6bc ARMv7M: Improve exception handler routine and add comments on SP selection
This patch adds a brief description of how context state is saved into the
SP on exception entry, and makes a few changes to _ARMV7M_Exception_default
in order to make it a bit more efficient. I also removed the unused 'v7mfsz'
input parameter.

This should apply over Sudarshan's patch.
2015-09-23 14:53:25 +02:00
Sudarshan Rajagopalan
7263a50d6c Fix exception handler for supporting FPU 2015-09-23 14:52:55 +02:00
Sebastian Huber
314ff3c43f score: Fix resource count for self-contained mutex 2015-09-14 08:30:09 +02:00
Sebastian Huber
10c4636947 rbheap: Fix rtems_rbheap_free()
Remove unused descriptor of merged free chunks from the free chain and
add them to the spare descriptors.

Close #2417.
2015-09-11 11:28:13 +02:00
Sebastian Huber
5e4714b032 libtests/rbheap01: Simplify
Update #2417.
2015-09-11 11:27:33 +02:00
Sebastian Huber
808230add9 Upgrade to 4.11.99.0 2015-09-11 08:24:18 +02:00
Marcos Diaz
bebfc4209b Beaglebone: fix missing clobber in inline assembly.
flush_data_cache uses R0 directly but doesn't list it as a clobbered
register. Compiling with -O3 made this code break, since the function
that calls flush_data_cache already uses r0.

closes #2416.
2015-09-10 13:21:41 -05:00
Joel Sherrill
cf2f3834a3 lpc23xx_tli800: Add mdosfs_fsscandir01 to tests to avoid. Does not link. 2015-09-10 11:03:43 -07:00
Sebastian Huber
fc5e52b938 bsps/arm: Fix function definition
Close #2385.
2015-09-04 13:50:28 +02:00
Sebastian Huber
252e244e6d smp: Documentation 2015-09-04 13:47:30 +02:00
Sebastian Huber
e1769f2764 smp: Documentation
Close #2274.
2015-09-04 13:44:47 +02:00
Sebastian Huber
dafa5d8843 score: Implement priority boosting 2015-09-04 13:26:17 +02:00
Sebastian Huber
3995e6d9c2 score: Implement SMP-specific priority queue 2015-09-04 13:25:03 +02:00
Sebastian Huber
c4db18a0bb score: Documentation 2015-09-04 13:14:54 +02:00
Sebastian Huber
cee82dfb26 smp: Documentation 2015-09-04 13:14:50 +02:00
Sebastian Huber
06496fba0a smp: Documentation 2015-09-04 13:09:17 +02:00
Martin Galvan
41b5c915e3 cpukit/libmisc/dumpbuf/dumpbuf.c: Fix compilation warnings
Compiling dumpbuf.c causes the following warning to be issued:

warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign]

This happens because line_buffer is declared as unsigned.

Closes #2411.
2015-09-03 16:09:02 -05:00
Martin Galvan
28a870c47f cpukit/libnetworking/rtems/rtems_dhcp.c: Fix compilation error
Apparently 'free' is defined as a macro which takes two arguments and calls
rtems_bsdnet_free. When fixing #2405 I added a missing 'free' but didn't notice
it was non-standard.

Closes #2410.
2015-09-03 15:42:41 -05:00
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