path: root/c/src/exec/score/src/threadinitialize.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-07-22Remove, moved to cpukit.Ralf Corsepius1-218/+0
2002-05-152002-05-15 Chris Johns <>Joel Sherrill1-0/+6
* include/rtems/score/thread.h, inline/rtems/score/thread.inl, src/threaddispatch.c, src/threadinitialize.c: Move the C library re-enterrant support directly into the thread dispatch code. RTEMS needs libc and so requiring libc to use a user extension with its overhead is not the best solution. This patch lowers the overhead to 2 pointer moves.
2002-04-162002-04-16 Chris Johns <>Joel Sherrill1-0/+14
* src/threadinitialize.c: Per PR181, clear the array of user extension pointers. This lets user extensions that have hooked the switch handler know if a task has been processed by the user extension before. If a user extension is created after a task is started it may not know it.
2001-01-082001-01-08 Joel Sherrill <>Joel Sherrill1-0/+4
* src/threadinitialize.c: Fix my bad hack of Ralf's fp_area warning removal patch. :(
2001-01-082001-01-08 Ralf Corsepius <>Joel Sherrill1-0/+2
* src/threadinitialize.c: Removed warning.
2000-07-26Port of RTEMS to the Texas Instruments C3x/C4x DSP families includingJoel Sherrill1-0/+2
a BSP (c4xsim) supporting the simulator included with gdb. This port was done by Joel Sherrill and Jennifer Averett of OAR Corporation. Also included with this port is a space/time optimization to eliminate FP context switch management on CPUs without hardware or software FP. An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8) on this CPU. This required addressing alignment checks and assumptions as well as fixing code that assumed sizeof(unsigned32) == 4.
1999-11-17Updated copyright notice.Joel Sherrill1-2/+1
1999-11-16Added comments.Joel Sherrill1-1/+4
1999-11-10Committed modifications from ITRON Task and Task Dependendent SynchronizationJoel Sherrill1-0/+1
Working Group. Included are tests.
1999-07-28Fix after this report from Peter Pointner <>:Joel Sherrill1-0/+12
Problem: a posix thread which is created by pthread_attr_init(&tattr); pthread_attr_setinheritsched(&tattr, PTHREAD_EXPLICIT_SCHED); pthread_attr_setschedpolicy(&tattr, SCHED_RR); pthread_create(&th, &tattr, func, arg); has a first timeslice of 2^32 ticks (changing a running thread to SCHED_RR id ok). I use RTEMS-4.0.0. I am not sure if the problem exists in the current CVS head revision. If it's not fixed, the patch at the end should do it. Peter --- pthreadcreate.c.orig Wed Jul 28 14:45:58 1999 +++ pthreadcreate.c Wed Jul 28 15:06:09 1999 @@ -199,6 +199,10 @@ api->schedpolicy = schedpolicy; api->schedparam = schedparam; + if ( schedpolicy == SCHED_RR ) { + the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice; + } + /* * This insures we evaluate the process-wide signals pending when we * first run.
1999-05-17Thread Handler split into multiple files. Eventually, as RTEMS isJoel Sherrill1-0/+175
split into one function per file, this will decrease the size of executables.