Commit Graph

25246 Commits

Author SHA1 Message Date
Sebastian Huber
0e8656b49e posix: Create rwlock implementation header
Move implementation specific parts of rwlock.h and rwlock.inl into new
header file rwlockimpl.h.  The rwlock.h contains now only the
application visible API.
2013-07-22 16:57:23 +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
4cb8e597a7 score: Obtain _Thread_Executing in proper context 2013-07-22 16:57:22 +02:00
Sebastian Huber
35210b128c posix: Create condition variable impl header
Move implementation specific parts of cond.h and cond.inl into new
header file condimpl.h.  The cond.h contains now only the application
visible API.
2013-07-22 16:57:22 +02:00
Sebastian Huber
a951572290 cpuuse: Add SMP support 2013-07-22 16:57:22 +02:00
Sebastian Huber
7d9a42603b libcsupport: Include missing header file 2013-07-22 16:57:21 +02:00
Sebastian Huber
0444947e63 score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter.  Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
2013-07-22 16:57:21 +02:00
Sebastian Huber
bb2d9f9b36 score: Create barrier implementation header
Move implementation specific parts of corebarrier.h and corebarrier.inl
into new header file corebarrierimpl.h.  The corebarrier.h contains now
only the application visible API.
2013-07-22 16:57:21 +02:00
Sebastian Huber
6b4a3770cd posix: Create barrier implementation header
Move implementation specific parts of barrier.h and barrier.inl into new
header file barrierimpl.h.  The barrier.h contains now only the
application visible API.
2013-07-22 16:57:21 +02:00
Sebastian Huber
0b32bb8042 rtems: Create barrier implementation header
Move implementation specific parts of barrier.h and barrier.inl into new
header file barrierimpl.h.  The barrier.h contains now only the
application visible API.
2013-07-22 16:57:21 +02:00
Sebastian Huber
e64f164335 score: Include <limits.h> in basedefs.h 2013-07-22 16:57:17 +02:00
Sebastian Huber
33a4a56e7f score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter.  Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
2013-07-22 16:56:59 +02:00
Sebastian Huber
b5d514fe2d score: Create message queue implementation header
Move implementation specific parts of coremsg.h and coremsg.inl into new
header file coremsgimpl.h.  The coremsg.h contains now only the
application visible API.
2013-07-22 16:56:59 +02:00
Sebastian Huber
972a5c5f94 posix: Create message queue implementation header
Move implementation specific parts of mqueue.h and mqueue.inl into new
header file mqueueimpl.h.  The mqueue.h contains now only the
application visible API.
2013-07-22 16:56:59 +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
e36f2b8c91 score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter.  Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
2013-07-22 16:56:58 +02:00
Sebastian Huber
570045ed7f score: Add const qualifier 2013-07-22 16:56:58 +02:00
Sebastian Huber
c4f585589a score: Create semaphore implementation header
Move implementation specific parts of coresem.h and coresem.inl into new
header file coresemimpl.h.  The coresem.h contains now only the
application visible API.
2013-07-22 16:56:58 +02:00
Sebastian Huber
c624c0e9e2 posix: Convert to inline function 2013-07-22 16:56:58 +02:00
Sebastian Huber
9c743e8e72 posix: Create semaphore implementation header
Move implementation specific parts of semaphore.h and semaphore.inl into
new header file semaphoreimpl.h.  The semaphore.h contains now only the
application visible API.
2013-07-22 16:56:57 +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
0bbd8fdce2 score: Add and use _ISR_Get_nest_level() 2013-07-22 16:46:01 +02:00
Sebastian Huber
d0a97f2d1d score: Move ISR catch support functions
Delete now unused file <rtems/score/isr.inl>.
2013-07-22 16:46:00 +02:00
Sebastian Huber
45b572fa4a score: Move ISR level content to single file 2013-07-22 16:46:00 +02:00
Sebastian Huber
1a30d44266 libmisc: Use _Thread_Get_executing() 2013-07-22 16:46:00 +02:00
Sebastian Huber
d566f33e67 libcsupport: Use _Thread_Get_executing() 2013-07-22 16:46:00 +02:00
Sebastian Huber
d7ce33f17e testsuites: Use _Thread_Get_executing() 2013-07-22 16:46:00 +02:00
Sebastian Huber
5f7757b05b posix: Use _Thread_Get_executing() 2013-07-22 16:45:59 +02:00
Sebastian Huber
3b8d2fa443 rtems: Use _Thread_Get_executing() 2013-07-22 16:45:59 +02:00
Sebastian Huber
02f73d487e score: Use _Thread_Get_executing() 2013-07-22 16:45:59 +02:00
Sebastian Huber
a9127a2e65 testsuites: Include missing header files 2013-07-22 16:45:59 +02:00
Sebastian Huber
f2d9fda780 shell: Include missing header file 2013-07-22 16:45:58 +02:00
Sebastian Huber
ca1d84efb8 network: Include missing header file 2013-07-22 16:45:58 +02:00
Sebastian Huber
a1b4752869 posix: Include missing header files 2013-07-22 16:45:58 +02:00
Sebastian Huber
1e4f08b412 score: Include missing header files 2013-07-22 16:45:58 +02:00
Sebastian Huber
57c8805648 smptests: Be successful on one processor 2013-07-22 16:45:58 +02:00
Ralf Kirchner
2f589cccae bsp/gen83xx: Fix BSP options for MPC8348EAMDS 2013-07-18 10:19:38 +02:00
Sebastian Huber
e7ce41bb6d libcsupport: Do not use _ISR_Nest_level
The _Thread_Dispatch_is_enabled() is false if _ISR_Nest_level is not
equal to zero.
2013-07-18 09:58:58 +02:00
Sebastian Huber
401f1b9d56 rtems, posix: Use _Thread_Get_executing() 2013-07-18 09:58:58 +02:00
Sebastian Huber
95e09afa92 score: Avoid direct usage of _Thread_Executing
Pass the executing thread as a function parameter.  Obtain the executing
thread inside a thread dispatch critical section to avoid problems on
SMP.
2013-07-18 09:58:58 +02:00
Sebastian Huber
ac15b0716a score: Convert to inline function 2013-07-18 09:58:58 +02:00
Sebastian Huber
9728ef357f posix: Convert to inline function 2013-07-18 09:58:57 +02:00
Sebastian Huber
15462a6f1c rtems: Convert to inline functions 2013-07-18 09:58:57 +02:00
Sebastian Huber
20e239c2f0 score: Create mutex implementation header
Move implementation specific parts of coremutex.h and coremutex.inl into
new header file coremuteximpl.h.  The coremutex.h contains now only the
application visible API.
2013-07-18 09:58:57 +02:00
Sebastian Huber
f9d533a5f3 posix: Create mutex implementation header
Move implementation specific parts of mutex.h and mutex.inl into new
header file muteximpl.h.  The mutex.h contains now only the application
visible API.
2013-07-18 09:58:57 +02:00