Commit Graph

3062 Commits

Author SHA1 Message Date
Sebastian Huber
47d6013417 score: _CPU_SMP_Get_current_processor()
Remove RTEMS_COMPILER_PURE_ATTRIBUTE from _SMP_Get_current_processor()
and all _CPU_SMP_Get_current_processor().  Make inline ASM statements
volatile again.  Test smptests/smpmigration01 showed that GCC optimizes
too much otherwise.
2014-02-21 09:38:54 +01:00
Sebastian Huber
83bf105486 score: Rename _Internal_error_Occurred()
Rename _Internal_error_Occurred() into _Terminate().
2014-02-21 09:38:24 +01:00
Sebastian Huber
9eec2f33e9 score: Add RTEMS_FATAL_SOURCE_SMP
Use rtems_fatal() instead of _CPU_Fatal_halt() to shutdown processors in
SMP configurations since this allows intervention of BSP or application
specific fatal extensions.
2014-02-19 09:59:40 +01:00
Sebastian Huber
33cb8bf64d score: Add RTEMS_FATAL_SOURCE_BSP
Merge RTEMS_FATAL_SOURCE_BSP_GENERIC and RTEMS_FATAL_SOURCE_BSP_SPECIFIC
into new fatal source RTEMS_FATAL_SOURCE_BSP.  This makes it easier to
figure out the code position given a fatal source and code.
2014-02-19 09:59:39 +01:00
Sebastian Huber
b39e055a49 score: Delete INTERNAL_ERROR_SHUTDOWN_WHEN_NOT_UP
This error case is no longer required since rtems_shutdown_executive()
can be called anytime, anywhere
2014-02-19 09:59:39 +01:00
Sebastian Huber
514705d2f1 score: Delete _Thread_BSP_context
Do not return to BSP context in the exit() shutdown path.  This makes it
possible to re-use the initialization stack.  It can be used for the
interrupt stack for example.  On targets with a small RAM this is a
considerable benefit.

This change eliminates also some special cases and simplifies the code.

Delete _Thread_Set_global_exit_status(),
_Thread_Get_global_exit_status() and _Thread_Stop_multitasking().
2014-02-19 09:59:39 +01:00
Sebastian Huber
92f50c3b29 score: Add SYSTEM_STATE_TERMINATED
Merge systems states SYSTEM_STATE_SHUTDOWN and SYSTEM_STATE_FAILED into
new system state SYSTEM_STATE_TERMINATED.  This reflects that all system
termination paths end up in _Internal_error_Occurred().
2014-02-19 09:59:38 +01:00
Jennifer Averett
2729c1c2a8 smptests: Add check for affinity support in newlib. 2014-02-17 12:19:06 -06:00
Jennifer Averett
f38060b6dd psxtests: Correct bug in check of affinity support in newlib. 2014-02-17 12:17:26 -06:00
Sebastian Huber
ad7292f264 score: Add SMP barrier 2014-02-17 08:46:38 +01:00
Sebastian Huber
7d066fc23f smptests/smplock01: Use atomic operations 2014-02-17 08:46:38 +01:00
Sebastian Huber
8a9568d2e7 Require presence of <stdatomic.h> for SMP support 2014-02-17 08:46:38 +01:00
Sebastian Huber
945853b7cf score: Add Atomic_Uint 2014-02-14 10:28:30 +01:00
Sebastian Huber
24bf11eca1 score: Add CPU counter support
Add a CPU counter interface to allow access to a free-running counter.
It is useful to measure short time intervals.  This can be used for
example to enable profiling of critical low-level functions.

Add two busy wait functions rtems_counter_delay_ticks() and
rtems_counter_delay_nanoseconds() implemented via the CPU counter.
2014-02-14 10:28:29 +01:00
Sebastian Huber
e11d9287cf testsuites: Add TESTS_USE_PRINTF
Make it possible to use normal printf() if requested to allow output of
floating point numbers.
2014-02-12 09:18:00 +01:00
Sebastian Huber
bab16de267 score: Change debug helper functions
Rename rtems_internal_error_description() to
rtems_internal_error_text().  Rename rtems_fatal_source_description() to
rtems_fatal_source_text().  Rename rtems_status_code_description() to
rtems_status_text().  Remove previous implementation of
rtems_status_text().
2014-02-12 09:18:00 +01:00
Sebastian Huber
920a43e639 rtems: Add rtems_status_code_description() 2014-02-06 08:47:02 +01:00
Sebastian Huber
67f2a28e69 sptests/spsem0[12]: Use rtems_test_exit() 2014-02-05 12:55:19 +01:00
Sebastian Huber
022851aba5 Add thread-local storage (TLS) support
Tested and implemented on ARM, m68k, PowerPC and SPARC.  Other
architectures need more work.
2014-02-04 10:06:35 +01:00
Sebastian Huber
a49bc354a7 score: Add _Heap_Size_with_overhead() 2014-02-04 10:06:34 +01:00
Sebastian Huber
a850d040ab score: Add _Workspace_Allocate_aligned() 2014-02-04 10:06:34 +01:00
Sebastian Huber
e1b96b83e5 libtests/block11: Use custom device driver 2014-02-03 13:44:36 +01:00
Chris Johns
6e6fd513a7 testsuite/psx13: Add linefeed to end of test message.
The lack of a line feed means the output from the test runs into
the MI protocol on GDB as the broken simulator output currently
is not passing through gdb's MI protocol layer.
2014-01-19 10:42:17 +11:00
Chris Johns
e83be2871f testsuite/rtems++: Output format change.
Alter the output to avoid sending out what is the MI protocol. The SIS
simulator is currently broken and outputs directly to GDB's stdout and
so this output gets parsed as MI output.
2014-01-10 10:57:08 +11:00
HailinGuo
05b3db65f9 spsize/size.c: Fix typo.
From pull request at fc07a4c501
2014-01-09 09:50:18 -06:00
Cynthia Rempel
46123cf24f libtests: Add contents to rbheap and stackchk documentation files 2014-01-09 09:42:01 -06:00
Cynthia Rempel
4e108d7919 tmtests: Add contents to multiple documentation files 2014-01-09 09:42:01 -06:00
Daniel Ramirez
3096f5c967 libtests/termios01: Add tests for cfsetspeed() and cfmakeraw() 2014-01-09 09:21:49 -06:00
Daniel Ramirez
8950204093 libtests/uid01: Fix Copyright information 2014-01-09 10:18:45 -05:00
Daniel Ramirez
7cf81ba4aa libtests: added test to confirm patch fixes bug 2014-01-09 10:07:49 -05:00
Toma Radu
540b771a07 sp16, sp17, and sp20: Documentation Fixes
Fix the documentation for the sp16, sp17 and sp20 tests.
2014-01-08 15:24:09 -06:00
Cynthia Rempel
73a7713d8c fstests and libtests: Add contents to multiple documentation files 2014-01-08 12:48:37 -06:00
Joel Sherrill
893aac166a rhealstone: Add start end and messages 2014-01-07 18:31:32 -06:00
Joel Sherrill
bc55e4fa52 psximfs02: Clean up output 2014-01-07 18:02:46 -06:00
Joel Sherrill
f3f3049824 spfifo02: Clean up output 2014-01-07 18:01:55 -06:00
Cynthia Rempel
23d53e8aaa fsdosfsformat01.doc: Add contents 2014-01-07 15:08:48 -06:00
Cynthia Rempel
d8cd49cb8b fsbdpart01.doc: Add contents 2014-01-07 13:33:36 -06:00
Joel Sherrill
b6c1578bb9 rhealstone: Add rh prefix to all test names
This makes them easier to spot as a group in wildcard searches.
2014-01-05 11:17:08 -06:00
Joel Sherrill
e8c7dbe736 rhealstone/*.c: Add Print_Warning() call to indicate debug enabled 2014-01-05 10:39:34 -06:00
Joel Sherrill
acc636e1b5 rhealstone/README: Formatting 2014-01-05 10:38:57 -06:00
Daniel Ramirez
19e9bf8800 Added Rhealstone benchmark to testsuites
The Rhealstone benchmarks six operations that are critical components
of a real-time system. It allows for an objective analysis to be
performed, and allows for comparisons between systems.
See rhealstone/README for more information.
2014-01-05 09:58:39 -06:00
Joel Sherrill
4470ae9bb9 sp09: Remove partition specific parts 2014-01-04 11:08:10 -06:00
Joel Sherrill
f17a9269d3 spregion_err01: Clean up comments 2014-01-04 11:06:20 -06:00
Joel Sherrill
7132d3d498 sppartition_err01: Remove dead parts, reduce, and clean up.
Also fix naming issues.
2014-01-04 11:04:51 -06:00
Shaily Sangwan
524e78570a psxtime: Added doc file. 2014-01-03 13:12:43 -06:00
Mandar Juvekar
12f81c09ec pskey09, sp17: documentation cleanup. 2014-01-03 08:25:14 -06:00
Mandar Juvekar
255178ec35 sptests: Refactor sp09 into sppartition_err01 and sp09. 2014-01-02 13:22:36 -06:00
Joel Sherrill
1953027120 sp09: Remove region test references 2013-12-30 09:53:31 -06:00
Joel Sherrill
8211b9f3b0 spregion_err01: Remove unneeded fluff copied from sp09
The goal is to shrink the individual tests to have no unneeded
resources and to follow the structure of a normal test.
2013-12-30 09:53:31 -06:00
Mandar Juvekar
dfcb3ace79 spregion_err01: New test refactored from sp09 2013-12-30 09:18:51 -06:00