Commit Graph

3323 Commits

Author SHA1 Message Date
Sebastian Huber
c40482815e rtems: Create tasks implementation header
Move implementation specific parts of tasks.h and tasks.inl into new
header file tasksimpl.h.  The tasks.h contains now only the application
visible API.
2013-07-23 15:12:55 +02:00
Sebastian Huber
f6c7c57d86 rtems: Create region implementation header
Move implementation specific parts of region.h and region.inl into new
header file regionimpl.h.  The region.h contains now only the
application visible API.
2013-07-23 15:12:55 +02:00
Sebastian Huber
8695cae269 rtems: Create part implementation header
Move implementation specific parts of part.h and part.inl into new
header file partimpl.h.  The part.h contains now only the application
visible API.
2013-07-23 15:12:55 +02:00
Sebastian Huber
e90b1dfdda rtems: Create timer implementation header
Move implementation specific parts of timer.h and timer.inl into new
header file timerimpl.h.  The timer.h contains now only the application
visible API.
2013-07-23 15:12:54 +02:00
Sebastian Huber
ecdcf01add rtems: Create ratemon implementation header
Move implementation specific parts of ratemon.h and ratemon.inl into
new header file ratemonimpl.h.  The ratemon.h contains now only the
application visible API.
2013-07-23 15:12:54 +02:00
Sebastian Huber
7660e8b347 Include missing <string.h> 2013-07-23 15:12:54 +02:00
Sebastian Huber
562815cf0b rtems: Create dpmem implementation header
Move implementation specific parts of dpmem.h and dpmem.inl into new
header file dpmemimpl.h.  The dpmem.h contains now only the application
visible API.
2013-07-23 15:12:54 +02:00
Sebastian Huber
e151eb1a36 rtems: Create event implementation header
Move implementation specific parts of event.h, event.inl, eventset.h and
eventset.inl into new header file eventimpl.h.  The event.h contains now
only the application visible API.
2013-07-23 15:12:53 +02:00
Sebastian Huber
93fb3cb059 score: Create rbtree implementation header
Move implementation specific parts of rbtree.h and rbtree.inl into new
header file rbtreeimpl.h.  The rbtree.h contains now only the
application visible API.
2013-07-23 15:12:52 +02:00
Sebastian Huber
ac252bdce0 sapi: Create extension implementation header
Move implementation specific parts of extension.h and extension.inl into
new header file extensionimpl.h.  The extension.h contains now only the
application visible API.
2013-07-23 15:12:51 +02:00
Sebastian Huber
2445bda1db sapi: Merge rbtree API into one file 2013-07-23 15:12:51 +02:00
Sebastian Huber
0eae7ba9ba score: Add WATCHDOG_INITIALIZER() 2013-07-22 16:57:26 +02:00
Sebastian Huber
4b48ece07d score: Create watchdog implementation header
Move implementation specific parts of watchdog.h and watchdog.inl into
new header file watchdogimpl.h.  The watchdog.h contains now only the
application visible API.
2013-07-22 16:57:25 +02:00
Sebastian Huber
918d5565b2 sptests/sp37: Disable dispatch for clock tick 2013-07-22 16:57:25 +02:00
Sebastian Huber
f17c779828 posix: Create timer implementation header
Move implementation specific parts of timer.h and timer.inl into new
header file timerimpl.h.  The timer.h contains now only the application
visible API.
2013-07-22 16:57:24 +02:00
Sebastian Huber
0c5317d16c posix: Create pthread implementation header
Move implementation specific parts of pthread.h and pthread.inl into new
header file pthreadimpl.h.  The pthread.h contains now only the
application visible API.
2013-07-22 16:57:23 +02:00
Sebastian Huber
97552c98b6 posix: Create priority implementation header
Move implementation specific parts of priority.h and priority.inl into
new header file priorityimpl.h.  Remove priority.h since there is no
application visible API.
2013-07-22 16:57:23 +02:00
Sebastian Huber
d8dd80e8a6 smptests/smp08: Print missing newline 2013-07-22 16:57:22 +02:00
Sebastian Huber
993a888dfd rtems: Create message queue implementation header
Move implementation specific parts of message.h and message.inl into new
header file messageimpl.h.  The message.h contains now only the
application visible API.
2013-07-22 16:56:58 +02:00
Sebastian Huber
05e82bd76b score: Error for non-preemptible tasks on SMP
A common use case for disabled preemption was to ensure mutual exclusion
on single-processor configurations.  On SMP this does not work.

To abandon non-preemptible tasks simplifies the scheduler.
2013-07-22 16:46:01 +02:00
Sebastian Huber
79d9523f19 rtems: Error for task variables on SMP
Task variables are not supported on SMP.
2013-07-22 16:46:01 +02:00
Sebastian Huber
50ccf988c2 rtems: Error for task delete on SMP
Task deletion is currently not implemented on SMP configurations.
2013-07-22 16:46:01 +02:00
Sebastian Huber
f913c796ff sapi: Add rtems_configuration_is_smp_enabled()
Add a configuration field which indicates if the SMP mode of operation
is enabled.  This can be used to disable features unsupported on SMP,
e.g task variables.
2013-07-22 16:46:01 +02:00
Sebastian Huber
d7ce33f17e testsuites: Use _Thread_Get_executing() 2013-07-22 16:46:00 +02:00
Sebastian Huber
a9127a2e65 testsuites: Include missing header files 2013-07-22 16:45:59 +02:00
Sebastian Huber
57c8805648 smptests: Be successful on one processor 2013-07-22 16:45:58 +02:00
Sebastian Huber
2bbea657ae rtems: Create semaphore implementation header
Move implementation specific parts of sem.h and sem.inl into new header
file semimpl.h.  The sem.h contains now only the application visible
API.
2013-07-18 09:58:56 +02:00
Sebastian Huber
0dd262d33d libtests/gxx01: Avoid random memory read/write 2013-07-18 09:58:56 +02:00
Sebastian Huber
39e51758c8 smp: Add and use _CPU_SMP_Get_current_processor()
Add and use _SMP_Get_current_processor() and
rtems_smp_get_current_processor().

Delete bsp_smp_interrupt_cpu().

Change type of current processor index from int to uint32_t to match
_SMP_Processor_count type.
2013-07-17 13:09:49 +02:00
WeiY
2e7f579865 stdatomic.h support check when configure 2013-07-17 13:07:33 +02:00
WeiY
5186b55180 smpatomic test case update 2013-07-17 13:07:33 +02:00
WeiY
a3e9c228f9 spatomic test case update 2013-07-17 13:07:33 +02:00
Sebastian Huber
0d01826880 psxtests/psxcleanup: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.
2013-07-05 16:01:04 +02:00
Sebastian Huber
5e2a66d5c9 psxtests/psxhdrs: Fix cleanup push/pop test
The pthread_cleanup_push() and pthread_cleanup_pop() statements must
appear as a pair in the same lexical scope as required by POSIX.
2013-07-05 16:01:04 +02:00
Sebastian Huber
b4062c3f7f tmtests/tm20: Change allocation sizes
This avoids problems with debugging enabled.
2013-06-25 17:06:24 +02:00
Sebastian Huber
22c7a64963 psxtests/psxkey02: Simplify
This avoids problems with debugging enabled.
2013-06-25 17:06:24 +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
010e4058e5 smptests/smpschedule01: Update due to API change 2013-06-17 10:22:30 +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
8b222be707 smptests/smpschedule01: New test 2013-06-14 16:26:09 +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
49cdf40afa score: Add and use _Thread_Dispatch_is_enabled()
Delete _Thread_Dispatch_in_critical_section() and
_Thread_Is_dispatching_enabled().
2013-06-14 16:26:06 +02:00
Sebastian Huber
ec978d97e0 score: Add _Chain_Insert_ordered_unprotected() 2013-06-14 16:26:06 +02:00