Commit Graph

885 Commits

Author SHA1 Message Date
WeiY
a3e9c228f9 spatomic test case update 2013-07-17 13:07:33 +02:00
Sebastian Huber
d79973d915 sptests/spwkspace: Reserve space for duplicates 2013-06-25 17:06:24 +02:00
Sebastian Huber
8ebc680009 sptests/spmountmgr01: Simplify
This avoids problems with debugging enabled.
2013-06-25 17:06:24 +02:00
Sebastian Huber
b9acb4eaf0 sptests/sp64: Simplify
This avoids problems with debugging enabled.
2013-06-25 17:06:16 +02:00
Sebastian Huber
8388970897 sptests/sp62: Rework to avoid heap internals
This avoids problems with debugging enabled.
2013-06-25 17:05:28 +02:00
Sebastian Huber
7c1fcff32f sptests/sp59: Change allocation size
This avoids problems with debugging enabled.
2013-06-25 17:05:20 +02:00
Sebastian Huber
9f37fb1974 sptests/sp18: Simplify
This avoids problems with debugging enabled.
2013-06-25 17:05:18 +02:00
Sebastian Huber
b64e8dc070 sptests/sp16: Change allocation sizes
This avoids problems with debugging enabled.
2013-06-25 17:05:18 +02:00
Sebastian Huber
3948a0b381 sptests/sp09: Change allocation sizes
This avoids problems with debugging enabled.
2013-06-25 17:05:09 +02:00
Sebastian Huber
c4a236aebe Revert "sptests/sp02: Fix maximum task count"
This reverts commit 6f8adb073b.

The resource count was correct.
2013-06-17 10:12:26 +02:00
Sebastian Huber
edde99bd21 score: Rename rtems_smp_get_number_of_processors()
Rename in rtems_smp_get_processor_count().  Always provide
<rtems/score/smp.h> and <rtems/rtems/smp.h>.  Add
_SMP_Get_processor_count().  This function will be a compile time
constant defined to be one on uni-processor configurations.  This allows
iterations over all processors without overhead on uni-processor
configurations.
2013-06-14 16:26:07 +02:00
Sebastian Huber
ec978d97e0 score: Add _Chain_Insert_ordered_unprotected() 2013-06-14 16:26:06 +02:00
Sebastian Huber
6f8adb073b sptests/sp02: Fix maximum task count 2013-06-14 16:26:06 +02:00
Sebastian Huber
c7bc6d44cb rtems: Add interrupt locks
Interrupt locks are low-level lock to protect critical sections accessed
by threads and interrupt service routines.
2013-06-12 16:11:24 +02:00
Sebastian Huber
e3be691598 score: Remove idle field of Per_CPU_Control
This field is unused except for special case simulator clock drivers.
In these places use an alternative.  Add and use
_Thread_Set_global_exit_status() and _Thread_Get_global_exit_status().
2013-05-31 15:20:31 +02:00
Gedare Bloom
26ecc744b5 sptests: add test to demonstrate bug in strict order mutex 2013-05-20 09:41:18 -04:00
Gedare Bloom
9cdbf73497 sptests: add test for priority inversion with multiple locks 2013-05-20 09:37:53 -04:00
Sebastian Huber
39993d6d76 score: Add CPU context validation 2013-05-10 12:10:14 +02:00
WeiY
502693f50e Clear the atomic conditional compilation. 2013-05-01 10:28:48 -04:00
Sebastian Huber
7b369afba9 testsuites: Fix warnings 2013-04-11 13:58:33 +02:00
Sebastian Huber
b217a4b7ee sptests/spstkalloc02: Disable for small memory BSP 2013-04-08 09:54:53 +02:00
Gedare Bloom
fad2d38a9f RTEMS: Delete ChangeLog files.
This commit deletes all RTEMS ChangeLog files. These files have been abandoned
since converting to git version control. The historical data may be recovered
by checking out any commit before this one. Most of the contents of these
ChangeLog files can also be found in the git log.

Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-03-08 15:55:06 -05:00
Ralf Corsépius
1c0a6e634b Introduce AM_CONDITIONAL ATOMIC. 2013-02-14 23:47:51 +01:00
Ralf Corsépius
bdf9072032 Introduce AM_CONDITIONAL ATOMIC, cpuopt RTEMS_ATOMIC. 2013-02-14 23:47:31 +01:00
Sebastian Huber
9a2ead0246 sptests/spfatal11: Update due to API changes 2013-02-12 15:39:14 +01:00
Sebastian Huber
68f36d144a score: Add and use rtems_assert_context 2013-02-12 09:31:27 +01:00
WeiY
fb9fa1537a tests: atomic support for RTEMS. Uniprocessor tests for atomic ops. 2013-02-07 17:02:12 -05:00
WeiY
9d23df2fbc score: atomic support for RTEMS automake and autoconf changes 2013-02-07 17:02:12 -05:00
Sebastian Huber
33bd2efbb2 testsuites: Fix prototypes 2013-01-27 13:50:23 +01:00
Sebastian Huber
565d8daad5 testsuites: Use rtems_fatal_source_description() 2013-01-27 13:47:17 +01:00
Sebastian Huber
f2f39b62a2 sapi: Add rtems_fatal_source_description() 2013-01-07 16:08:19 +01:00
Sebastian Huber
57f125d025 rtems: Critical fix for events
Commit 4b45c1393c marked a test in
_Event_Timeout() as debug only.  This test is required also in non-debug
configurations since otherwise state corruption can happen.  A revised
test sptests/spintrcritical10 checks the relevant sequences.
2013-01-07 15:13:24 +01:00
Sebastian Huber
355ca1ad9d sptests/spintrcritical16: Fix NULL pointer access 2013-01-02 16:31:55 +01:00
Sebastian Huber
11c10b8ba1 sptests/speventsystem01: Add test cases 2012-12-22 16:48:45 +01:00
Sebastian Huber
fe1dc221b6 score: Add _Objects_Active_count() 2012-12-21 15:40:27 +01:00
Sebastian Huber
cbd07e4ce0 score: Add rtems_chain_node_count_unprotected() 2012-12-21 15:40:27 +01:00
Sebastian Huber
48bff53b3d score: rtems_initialize_start_multitasking()
Do not return from rtems_initialize_start_multitasking() and call
rtems_fatal() instead with a fatal source of RTEMS_FATAL_SOURCE_EXIT and
a fatal code with the exit status.

Remove all bsp_cleanup() functions.  The boot_card() is now a no return
function.
2012-12-07 09:38:41 +01:00
Sebastian Huber
815994fd17 score: Add CPU_Exception_frame
Add CPU port type CPU_Exception_frame and function
_CPU_Exception_frame_print().

The CPU ports of avr, bfin, h8300, lm32, m32c, m32r, m68k, nios2, sh,
sparc64, and v850 use an empty default implementation of
_CPU_Exception_frame_print().

Add rtems_exception_frame and rtems_exception_frame_print().

Add RTEMS_FATAL_SOURCE_EXCEPTION for CPU exceptions.  Use rtems_fatal()
with source RTEMS_FATAL_SOURCE_EXCEPTION in CPU ports of i386, powerpc,
and sparc for unexpected exceptions.

Add third parameter to RTEMS_BSP_CLEANUP_OPTIONS() which controls the
BSP_PRINT_EXCEPTION_CONTEXT define used in the default
bsp_fatal_extension().

Add test sptests/spfatal26.
2012-11-27 17:03:40 +01:00
Sebastian Huber
3be0c9afa3 score: Add and use <rtems/score/userextimpl.h>
This file contains the parts of <rtems/score/userext.h> that are only
necessary for the RTEMS implementation.
2012-11-22 16:35:07 +01:00
Sebastian Huber
c1e350ca90 sptests/spcbssched02: PR2081: Workaround
Avoid uninitialized stack variable.  This is not a proper fix.  It is
not clear what the task should do if argument != 1.
2012-11-21 16:38:34 +01:00
Sebastian Huber
90733a86b8 rtems: Add rtems_clock_get_uptime_seconds() 2012-11-21 16:29:40 +01:00
Sebastian Huber
bfddb0478c rtems: Add rtems_clock_get_uptime_timeval() 2012-11-21 16:29:36 +01:00
Sebastian Huber
a0c7aa5555 score: Add RTEMS_FATAL_SOURCE_ASSERT 2012-11-15 15:33:13 +01:00
Sebastian Huber
a052181ca2 score: Add RTEMS_FATAL_SOURCE_EXIT
Include <bsp/default-initial-extension.h> in all BSPs.  Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup().  Move previous
bsp_cleanup() code into bsp_fatal_extension().
2012-11-15 15:33:12 +01:00
Sebastian Huber
b31a9603e0 score: Add INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR
Use INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR on PowerPC for
_CPU_ISR_install_vector().
2012-11-15 15:33:11 +01:00
Sebastian Huber
dc6e830c10 sapi: Add and use rtems_internal_error_description 2012-11-15 15:33:11 +01:00
Sebastian Huber
f48d06a6e1 sptests/spfatal24: Fix NULL pointer access 2012-11-15 15:33:10 +01:00
Sebastian Huber
dc0eed7b97 testsuites: Include <bsp.h>
Include <bsp.h> for proper BSP specific <rtems/confdefs.h>
initialization.
2012-11-14 14:06:59 +01:00
Sebastian Huber
8f548cea5f sptests/spintrcritical09: Fix check order
The critical section check never succeeded since watchdogs are ordered
with respect to the insertion time.  Now we call the watchdog routine if
appropriate and bypass the normal watchdog mechanic.
2012-11-13 09:38:03 +01:00
Sebastian Huber
44633fd65c sptests/spinternalerror01: New test 2012-11-13 09:37:57 +01:00