Joel Sherrill
d165fd2d79
erc32/*/erc32sonic.c: Fix warnings
2016-03-24 11:41:22 -05:00
Joel Sherrill
50b73d3a7e
cpukit/rtems/src/*mp.c: Fix set but not used warning
2016-03-24 11:41:21 -05:00
Joel Sherrill
b66394df63
sp13/task1.c: Remove warning for misleading indentation
...
Fix a block of off-by-one indentation and add braces to clarify
intention.
2016-03-24 11:41:21 -05:00
Joel Sherrill
020c4c07d4
libmisc/shell/main_hexdump.c: Disable unused copyright string
2016-03-24 11:41:21 -05:00
Joel Sherrill
c4e317f360
libmisc/monitor/mon-prmisc.c: Remove unused rtems_monitor_events_assoc
2016-03-24 11:41:21 -05:00
Joel Sherrill
d264b330e1
telnetd.c: Fix no prototype warning
2016-03-24 11:41:21 -05:00
Joel Sherrill
09c993b4bb
libnetworking/sys/libkern.h: Disable non-POSIX prototype that is actually unused
2016-03-24 11:41:20 -05:00
Joel Sherrill
7f9e067f54
cpuuse/cpuusagetop.c: Fix unused variable warning
2016-03-24 11:41:20 -05:00
Sebastian Huber
d67c869766
score: Use RTEMS_UNREACHABLE()
...
The _CPU_Context_switch() in _Thread_Start_multitasking() does in fact
not return.
2016-03-23 07:45:11 +01:00
Sebastian Huber
2518516f40
posix: pthread_exit() is a no-return function
2016-03-23 07:37:14 +01:00
Sebastian Huber
e8d9b26f43
score: Add and use RTEMS_UNREACHABLE
2016-03-23 07:33:42 +01:00
Joel Sherrill
426f35fe4b
cpukit/rtems/include/rtems/rtems/sem.h: Remove junk in comment
2016-03-22 13:15:30 -05:00
Joel Sherrill
1a738edb39
lpc1768_mbed.cfg: Turn on per function sections
...
Closes #2576 .
2016-03-22 10:10:38 -05:00
Sebastian Huber
9e2acee742
psxtests/psxobj01: Fix for RTEMS_DEBUG
2016-03-22 08:29:09 +01:00
Sebastian Huber
865f110b58
score: Fix for RTEMS_DEBUG
...
The rtems_extension_create() no longer uses the Giant lock. Ensure that
we call _User_extensions_Add_set() only in the right context.
Update #2555 .
2016-03-22 08:05:28 +01:00
Sebastian Huber
c61431f934
score: Always declare _Objects_Get_by_name()
...
Still define it only if RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES is
defined.
Close #2672 .
2016-03-22 07:44:14 +01:00
Sebastian Huber
30cac38f15
rtems: Use object allocator lock
...
Object creation and destruction is protected by the object allocator
lock and not disabled thread dispatching.
Update #2555 .
2016-03-22 07:44:13 +01:00
Sebastian Huber
baa1362643
score: Fix for RTEMS_DEBUG
...
Update #2627 .
2016-03-22 07:22:08 +01:00
Sebastian Huber
90960bd11a
rtems: Rework rate-monotonic scheduler
...
Use the default thread lock to protect rate-monotonic state changes.
This avoids use of the Giant lock. Split rtems_rate_monotonic_period()
body into several static functions. Introduce a new thread wait class
THREAD_WAIT_CLASS_PERIOD for period objects to synchronize the blocking
operation.
Close #2631 .
2016-03-22 07:05:05 +01:00
Sebastian Huber
875c26db0f
rtems: Avoid __RTEMS_USE_TICKS_FOR_STATISTICS__
...
Option was removed by e6b31b27fb .
2016-03-21 10:45:44 +01:00
Sebastian Huber
300eaadd42
rtems: Delete Rate_monotonic_Period_time_t
...
Variables with this type directly used the _Timestamp_*() functions.
2016-03-21 10:44:35 +01:00
Sebastian Huber
610e87d3c2
rtems: Inline _Rate_monotonic_Reset_statistics()
...
Use inline function instead of macro.
2016-03-21 10:36:20 +01:00
Sebastian Huber
be88976440
mpci: Avoid Giant lock
...
The object creation/deletion is protected by the object allocator lock.
Update #2555 .
2016-03-18 15:36:58 +01:00
Sebastian Huber
19e855d745
mpci: Avoid Giant lock
...
Update #2555 .
2016-03-18 15:36:58 +01:00
Sebastian Huber
5a5fb3b9d6
score: Avoid Giant lock for CORE spinlock
...
Use an ISR lock to protect the spinlock state. Remove empty attributes.
Update #2555 .
2016-03-18 15:36:58 +01:00
Sebastian Huber
c904df5733
score: Add _Objects_Get_by_name()
...
Replace _Objects_Name_to_id_string() with _Objects_Get_by_name() since
all users of this function are interested in the object itself and not
the identifier.
Use the object allocator lock to protect the search.
Update #2555 .
2016-03-18 15:36:58 +01:00
Sebastian Huber
1f0e652a2a
sptests/sptls02: Use GNU++11
...
This avoids a problem with the feature test macros introduced in Newlib
be657151f12f4d198e45395987f0a626ee1bbb91.
2016-03-18 15:36:58 +01:00
Sebastian Huber
e12f4e1724
bsp/qoriq: Invalidate TLS anchor
2016-03-18 10:59:24 +01:00
Sebastian Huber
e3f8ba57f4
ftpd: Resolve function name conflict
...
Visible with Newlib be657151f12f4d198e45395987f0a626ee1bbb91.
2016-03-18 10:30:57 +01:00
Sebastian Huber
b545d97c0c
score: C++ compatibility
2016-03-18 09:25:16 +01:00
Sebastian Huber
5eaf0e7458
posix: Use per-thread lookup tree for POSIX Keys
...
Yields higher performance on SMP systems.
Close #2625 .
2016-03-18 07:43:46 +01:00
Sebastian Huber
90de300108
score: Destroy thread timer lock
...
Update #2554 .
2016-03-18 07:43:46 +01:00
Sebastian Huber
d64f2e7a85
sparc: Fix SMP context switch
...
The value of register %g1 was overwritten in a delay slot. Use
additional %g4 register.
Bug introduced by 258ad71e96 .
2016-03-18 07:43:46 +01:00
Joel Sherrill
d731bc6fe7
bspgetworkarea.c: File header now uses Doxygen
2016-03-17 17:44:06 -05:00
Joel Sherrill
bfb886d78c
mcf5235/start/start.S: Fix spacing from bad tab expansion
2016-03-17 17:43:31 -05:00
Joel Sherrill
0d2067c451
pc386/console/conscfg.c: Fix name of Edison console
2016-03-17 17:42:55 -05:00
Daniel Hellstrom
6c4aaf4f31
sparc: Fix window underflow trap handler
...
The window underflow trap handler used %i5 which destroyed the %o5 of
the calling context. Bug introduced by
0d3b5d4742 .
Go back to the pre 0d3b5d4742 behaviour
and use the two unused instructions in the trap vector to optimize a
bit.
Update #2651 .
2016-03-17 11:09:08 +01:00
Sebastian Huber
2f02f93897
sapi: Include missing header file
2016-03-17 09:02:19 +01:00
Sebastian Huber
92dee4ab9c
rtems: Avoid Giant lock in rtems_signal_catch()
...
Update #2555 .
2016-03-17 08:27:47 +01:00
Sebastian Huber
f5bb299190
rtems: Avoid Giant lock in rtems_task_mode()
...
Update #2555 .
2016-03-17 08:27:47 +01:00
Sebastian Huber
75aef54d16
posix: Avoid Giant lock in sched_yield()
...
Update #2555 .
2016-03-17 08:27:47 +01:00
Sebastian Huber
d37adfe5dd
score: Fix CPU time used by executing threads
...
The CPU time used of a thread was previously maintained per-processor
mostly during _Thread_Dispatch(). However, on SMP configurations the
actual processor of a thread is difficult to figure out since thread
dispatching is a highly asynchronous process (e.g. via inter-processor
interrupts). Only the intended processor of a thread is known to the
scheduler easily. Do the CPU usage accounting during thread heir
updates in the context of the scheduler operations. Provide the
function _Thread_Get_CPU_time_used() to get the CPU usage of a thread
using proper locks to get a consistent value.
Close #2627 .
2016-03-17 08:27:47 +01:00
Sebastian Huber
1547b623eb
bsp/realview_pbx_a9_qemu: Fix compiler flags
2016-03-17 08:27:47 +01:00
Joel Sherrill
59461e5c82
pc386/.../bspimpl.h: New file missed in previous commit.
2016-03-16 08:02:11 -05:00
Sebastian Huber
b044373638
bsp/mpc55xx: Fix BSS initialization
2016-03-16 13:35:26 +01:00
Sebastian Huber
4bf79afb66
timecounter: Avoid invalid memcpy()
...
In uni-processor configurations we have only one timehand. Do not issue
a memcpy() with equal source and destination.
2016-03-16 13:35:26 +01:00
Sebastian Huber
f2f207cee7
score: Fix intenal mutex attributes
...
A mutex must be released by its owner.
2016-03-16 07:16:58 +01:00
Sebastian Huber
474b9beeaa
score: Use allocator lock in _Objects_Get_next()
...
Use the object allocator lock in _Objects_Get_next() instead of disabled
thread dispatching since object creation and deletion is covered by this
lock.
Update #2555 .
2016-03-16 07:16:58 +01:00
Sebastian Huber
05ef28754e
sapi: Do not disable thread dispatching
...
Do not disable thread dispatching to add a user extension. After
startup, the object allocator lock is enough.
Update #2555 .
2016-03-16 07:16:58 +01:00
Joel Sherrill
364866db1f
pc386: Do not include rtems/pci.h from bsp.h. Add bsp/bspimpl.h
...
Start to migrate private symbols to bsp/bspimpl.h.
2016-03-15 19:37:58 -05:00