Changeset 5618c37a in rtems


Ignore:
Timestamp:
Jul 24, 2013, 1:14:48 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
fe6c170c
Parents:
f0bfd7d8
git-author:
Sebastian Huber <sebastian.huber@…> (07/24/13 13:14:48)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/26/13 09:55:44)
Message:

score: Create thread implementation header

Move implementation specific parts of thread.h and thread.inl into new
header file threadimpl.h. The thread.h contains now only the
application visible API.

Remove superfluous header file includes from various files.

Files:
1 added
1 deleted
111 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/src/error.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/assoc.h>
    2222#include <rtems/score/sysstate.h>
     23#include <rtems/score/threadimpl.h>
    2324#include <inttypes.h>
    2425#include <stdio.h>
  • cpukit/libcsupport/src/newlibc_reent.c

    rf0bfd7d8 r5618c37a  
    2929
    3030#include <rtems/libcsupport.h>
     31#include <rtems/score/threadimpl.h>
    3132#include <rtems/score/wkspace.h>
    3233
  • cpukit/posix/src/alarm.c

    rf0bfd7d8 r5618c37a  
    2222#endif
    2323
    24 #include <pthread.h>
     24#include <unistd.h>
    2525
    26 #include <rtems/system.h>
    27 #include <rtems/score/watchdogimpl.h>
    2826#include <rtems/posix/pthreadimpl.h>
    2927#include <rtems/posix/psignalimpl.h>
     28#include <rtems/score/tod.h>
     29#include <rtems/score/watchdogimpl.h>
    3030
    3131/*
  • cpukit/posix/src/cancel.c

    rf0bfd7d8 r5618c37a  
    2222#include <errno.h>
    2323
    24 #include <rtems/system.h>
    25 #include <rtems/score/chain.h>
    2624#include <rtems/score/isr.h>
    27 #include <rtems/score/thread.h>
    28 #include <rtems/score/wkspace.h>
     25#include <rtems/score/threadimpl.h>
    2926#include <rtems/posix/cancel.h>
    30 #include <rtems/posix/pthreadimpl.h>
    3127#include <rtems/posix/threadsup.h>
    3228
  • cpukit/posix/src/nanosleep.c

    rf0bfd7d8 r5618c37a  
    2424#include <rtems/seterr.h>
    2525#include <rtems/score/schedulerimpl.h>
    26 #include <rtems/score/thread.h>
     26#include <rtems/score/threadimpl.h>
    2727#include <rtems/score/timespec.h>
    2828#include <rtems/score/tod.h>
  • cpukit/posix/src/psignalunblockthread.c

    rf0bfd7d8 r5618c37a  
    2525#include <rtems/system.h>
    2626#include <rtems/score/isr.h>
    27 #include <rtems/score/thread.h>
     27#include <rtems/score/threadimpl.h>
    2828#include <rtems/score/threadq.h>
    2929#include <rtems/score/watchdogimpl.h>
  • cpukit/posix/src/pthread.c

    rf0bfd7d8 r5618c37a  
    2727#include <rtems/score/apiext.h>
    2828#include <rtems/score/stack.h>
    29 #include <rtems/score/thread.h>
     29#include <rtems/score/threadimpl.h>
    3030#include <rtems/score/threadq.h>
    3131#include <rtems/score/userextimpl.h>
  • cpukit/posix/src/pthreadcreate.c

    rf0bfd7d8 r5618c37a  
    2525#include <errno.h>
    2626
    27 #include <rtems/system.h>
    28 #include <rtems/score/thread.h>
     27#include <rtems/posix/priorityimpl.h>
    2928#include <rtems/posix/pthreadimpl.h>
    30 #include <rtems/posix/priorityimpl.h>
    3129#include <rtems/posix/time.h>
     30#include <rtems/score/threadimpl.h>
    3231#include <rtems/score/apimutex.h>
     32#include <rtems/score/stackimpl.h>
    3333#include <rtems/score/watchdogimpl.h>
    34 #include <rtems/score/stackimpl.h>
    3534
    3635static inline size_t _POSIX_Threads_Ensure_minimum_stack (
  • cpukit/posix/src/pthreaddetach.c

    rf0bfd7d8 r5618c37a  
    2222#include <errno.h>
    2323
    24 #include <rtems/system.h>
    25 #include <rtems/score/thread.h>
    2624#include <rtems/posix/pthreadimpl.h>
     25#include <rtems/score/threadimpl.h>
    2726
    2827/**
  • cpukit/posix/src/pthreadequal.c

    rf0bfd7d8 r5618c37a  
    2424#include <errno.h>
    2525
    26 #include <rtems/system.h>
    2726#include <rtems/posix/pthreadimpl.h>
    28 #include <rtems/score/thread.h>
     27#include <rtems/score/threadimpl.h>
    2928
    3029int pthread_equal(
  • cpukit/posix/src/pthreadexit.c

    rf0bfd7d8 r5618c37a  
    2222#include <errno.h>
    2323
    24 #include <rtems/system.h>
     24#include <rtems/posix/pthreadimpl.h>
    2525#include <rtems/score/apimutex.h>
    26 #include <rtems/score/thread.h>
    27 #include <rtems/posix/pthreadimpl.h>
     26#include <rtems/score/threadimpl.h>
    2827
    2928
  • cpukit/posix/src/pthreadgetschedparam.c

    rf0bfd7d8 r5618c37a  
    2525#include <errno.h>
    2626
    27 #include <rtems/system.h>
    2827#include <rtems/posix/pthreadimpl.h>
    2928#include <rtems/posix/priorityimpl.h>
     29#include <rtems/score/threadimpl.h>
    3030
    3131int pthread_getschedparam(
  • cpukit/posix/src/pthreadjoin.c

    rf0bfd7d8 r5618c37a  
    2424#include <errno.h>
    2525
    26 #include <rtems/system.h>
    2726#include <rtems/posix/pthreadimpl.h>
    28 #include <rtems/score/thread.h>
     27#include <rtems/score/threadimpl.h>
    2928#include <rtems/score/threadq.h>
    3029
  • cpukit/posix/src/pthreadkill.c

    rf0bfd7d8 r5618c37a  
    2525#include <errno.h>
    2626
    27 #include <rtems/system.h>
    2827#include <rtems/posix/pthreadimpl.h>
    2928#include <rtems/posix/psignalimpl.h>
    3029#include <rtems/score/isr.h>
     30#include <rtems/score/threadimpl.h>
    3131#include <rtems/seterr.h>
    3232
  • cpukit/posix/src/pthreadsetschedparam.c

    rf0bfd7d8 r5618c37a  
    2626#include <errno.h>
    2727
    28 #include <rtems/system.h>
    29 #include <rtems/score/watchdogimpl.h>
    3028#include <rtems/posix/pthreadimpl.h>
    3129#include <rtems/posix/priorityimpl.h>
    3230#include <rtems/posix/time.h>
     31#include <rtems/score/threadimpl.h>
     32#include <rtems/score/watchdogimpl.h>
    3333
    3434int pthread_setschedparam(
  • cpukit/posix/src/sched_rr_get_interval.c

    rf0bfd7d8 r5618c37a  
    2727#include <rtems/system.h>
    2828#include <rtems/score/tod.h>
    29 #include <rtems/score/thread.h>
     29#include <rtems/score/threadimpl.h>
    3030#include <rtems/score/timespec.h>
    3131#include <rtems/seterr.h>
  • cpukit/posix/src/ualarm.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <pthread.h>
    22 /* #include <errno.h> */
     21#include <signal.h>
     22#include <unistd.h>
    2323
    24 #include <rtems/system.h>
    25 #include <rtems/score/watchdogimpl.h>
    2624#include <rtems/posix/pthreadimpl.h>
    2725#include <rtems/posix/psignalimpl.h>
    2826#include <rtems/posix/time.h>
     27#include <rtems/score/tod.h>
     28#include <rtems/score/watchdogimpl.h>
    2929
    3030static void _POSIX_signals_Ualarm_TSR( Objects_Id id, void *argument );
  • cpukit/rtems/src/clocktick.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/clock.h>
    2222#include <rtems/score/schedulerimpl.h>
    23 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2424#include <rtems/score/tod.h>
    2525#include <rtems/score/watchdogimpl.h>
  • cpukit/rtems/src/eventseize.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/eventimpl.h>
    2222#include <rtems/rtems/optionsimpl.h>
     23#include <rtems/score/threadimpl.h>
    2324#include <rtems/score/watchdogimpl.h>
    2425
  • cpukit/rtems/src/eventsend.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/eventimpl.h>
    2222#include <rtems/rtems/tasks.h>
     23#include <rtems/score/threadimpl.h>
    2324
    2425rtems_status_code rtems_event_send(
  • cpukit/rtems/src/eventsurrender.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/eventimpl.h>
    2222#include <rtems/rtems/optionsimpl.h>
     23#include <rtems/score/threadimpl.h>
    2324#include <rtems/score/watchdogimpl.h>
    2425
  • cpukit/rtems/src/eventtimeout.c

    rf0bfd7d8 r5618c37a  
    2020
    2121#include <rtems/rtems/eventimpl.h>
     22#include <rtems/score/threadimpl.h>
    2223
    2324void _Event_Timeout(
  • cpukit/rtems/src/msgmp.c

    rf0bfd7d8 r5618c37a  
    2929#include <rtems/score/watchdog.h>
    3030#include <rtems/rtems/support.h>
     31#include <rtems/score/threadimpl.h>
    3132
    3233RTEMS_STATIC_ASSERT(
  • cpukit/rtems/src/msgqtranslatereturncode.c

    rf0bfd7d8 r5618c37a  
    2525#include <rtems/score/object.h>
    2626#include <rtems/score/states.h>
    27 #include <rtems/score/thread.h>
     27#include <rtems/score/threadimpl.h>
    2828#include <rtems/score/wkspace.h>
    2929#if defined(RTEMS_MULTIPROCESSING)
  • cpukit/rtems/src/partmp.c

    rf0bfd7d8 r5618c37a  
    2828#include <rtems/score/thread.h>
    2929#include <rtems/rtems/support.h>
     30#include <rtems/score/threadimpl.h>
    3031
    3132RTEMS_STATIC_ASSERT(
  • cpukit/rtems/src/ratemoncancel.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/ratemonimpl.h>
    2222#include <rtems/score/schedulerimpl.h>
    23 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2424#include <rtems/score/watchdogimpl.h>
    2525
  • cpukit/rtems/src/ratemonperiod.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/rtems/ratemonimpl.h>
    2222#include <rtems/score/schedulerimpl.h>
    23 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2424#include <rtems/score/tod.h>
    2525#include <rtems/score/watchdogimpl.h>
  • cpukit/rtems/src/ratemontimeout.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/score/isr.h>
    25 #include <rtems/score/object.h>
    2621#include <rtems/rtems/ratemonimpl.h>
    27 #include <rtems/score/thread.h>
     22#include <rtems/score/threadimpl.h>
    2823#include <rtems/score/watchdogimpl.h>
    2924
  • cpukit/rtems/src/regionmp.c

    rf0bfd7d8 r5618c37a  
    2828#include <rtems/score/thread.h>
    2929#include <rtems/rtems/support.h>
     30#include <rtems/score/threadimpl.h>
    3031
    3132RTEMS_STATIC_ASSERT(
  • cpukit/rtems/src/signalmp.c

    rf0bfd7d8 r5618c37a  
    3030#include <rtems/score/watchdog.h>
    3131#include <rtems/rtems/support.h>
     32#include <rtems/score/threadimpl.h>
    3233
    3334RTEMS_STATIC_ASSERT(
  • cpukit/rtems/src/signalsend.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/signal.h>
    2222#include <rtems/rtems/asrimpl.h>
    23 #include <rtems/rtems/status.h>
    24 #include <rtems/rtems/asr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/rtems/modes.h>
    27 #include <rtems/rtems/signal.h>
    28 #include <rtems/score/thread.h>
    2923#include <rtems/rtems/tasks.h>
     24#include <rtems/score/threadimpl.h>
    3025
    3126rtems_status_code rtems_signal_send(
  • cpukit/rtems/src/systemeventsend.c

    rf0bfd7d8 r5618c37a  
    2727#include <rtems/rtems/eventimpl.h>
    2828#include <rtems/rtems/tasks.h>
     29#include <rtems/score/threadimpl.h>
    2930
    3031rtems_status_code rtems_event_system_send(
  • cpukit/rtems/src/taskcreate.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/config.h>
     21#include <rtems/rtems/tasksimpl.h>
    2322#include <rtems/rtems/attrimpl.h>
    24 #include <rtems/rtems/status.h>
     23#include <rtems/rtems/modesimpl.h>
    2524#include <rtems/rtems/support.h>
    26 #include <rtems/rtems/modesimpl.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/stack.h>
    29 #include <rtems/score/states.h>
    30 #include <rtems/rtems/tasksimpl.h>
    31 #include <rtems/score/thread.h>
    32 #include <rtems/score/threadq.h>
    33 #include <rtems/score/tod.h>
    34 #include <rtems/score/wkspace.h>
    35 #include <rtems/score/apiext.h>
     25#include <rtems/score/apimutex.h>
    3626#include <rtems/score/sysstate.h>
    37 #include <rtems/score/apimutex.h>
     27#include <rtems/score/threadimpl.h>
    3828
    3929rtems_status_code rtems_task_create(
  • cpukit/rtems/src/taskdelete.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/apimutex.h>
     23#include <rtems/score/threadimpl.h>
    2224#include <rtems/config.h>
    23 #include <rtems/rtems/status.h>
    24 #include <rtems/rtems/support.h>
    25 #include <rtems/rtems/modes.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/stack.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/rtems/tasksimpl.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/tod.h>
    33 #include <rtems/score/wkspace.h>
    34 #include <rtems/score/apiext.h>
    35 #include <rtems/score/apimutex.h>
    3625
    3726rtems_status_code rtems_task_delete(
  • cpukit/rtems/src/taskgetnote.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/threadimpl.h>
    2223#include <rtems/config.h>
    23 #include <rtems/rtems/status.h>
    24 #include <rtems/rtems/support.h>
    25 #include <rtems/rtems/modes.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/stack.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/rtems/tasksimpl.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/tod.h>
    33 #include <rtems/score/wkspace.h>
    34 #include <rtems/score/apiext.h>
    3524
    3625rtems_status_code rtems_task_get_note(
  • cpukit/rtems/src/taskissuspended.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    28 #include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524/*
  • cpukit/rtems/src/taskmode.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/rtems/asrimpl.h>
     23#include <rtems/rtems/modesimpl.h>
     24#include <rtems/score/threadimpl.h>
    2225#include <rtems/config.h>
    23 #include <rtems/rtems/asrimpl.h>
    24 #include <rtems/rtems/status.h>
    25 #include <rtems/rtems/support.h>
    26 #include <rtems/rtems/modesimpl.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/stack.h>
    29 #include <rtems/score/states.h>
    30 #include <rtems/rtems/tasksimpl.h>
    31 #include <rtems/score/thread.h>
    32 #include <rtems/score/threadq.h>
    33 #include <rtems/score/tod.h>
    34 #include <rtems/score/wkspace.h>
    35 #include <rtems/score/apiext.h>
    3626
    3727rtems_status_code rtems_task_mode(
  • cpukit/rtems/src/taskmp.c

    rf0bfd7d8 r5618c37a  
    2929#include <rtems/score/watchdog.h>
    3030#include <rtems/rtems/support.h>
     31#include <rtems/score/threadimpl.h>
    3132
    3233RTEMS_STATIC_ASSERT(
  • cpukit/rtems/src/taskrestart.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    28 #include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524rtems_status_code rtems_task_restart(
  • cpukit/rtems/src/taskresume.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    2821#include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524rtems_status_code rtems_task_resume(
  • cpukit/rtems/src/tasksetnote.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/threadimpl.h>
    2223#include <rtems/config.h>
    23 #include <rtems/rtems/status.h>
    24 #include <rtems/rtems/support.h>
    25 #include <rtems/rtems/modes.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/stack.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/rtems/tasksimpl.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/tod.h>
    33 #include <rtems/score/wkspace.h>
    34 #include <rtems/score/apiext.h>
    3524
    3625rtems_status_code rtems_task_set_note(
  • cpukit/rtems/src/tasksetpriority.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    2821#include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524rtems_status_code rtems_task_set_priority(
  • cpukit/rtems/src/taskstart.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    28 #include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524/*
  • cpukit/rtems/src/tasksuspend.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/stack.h>
    27 #include <rtems/score/states.h>
    2821#include <rtems/rtems/tasksimpl.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/tod.h>
    32 #include <rtems/score/wkspace.h>
    33 #include <rtems/score/apiext.h>
     22#include <rtems/score/threadimpl.h>
    3423
    3524rtems_status_code rtems_task_suspend(
  • cpukit/rtems/src/taskvariable_invoke_dtor.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    2221#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/threadimpl.h>
    2323#include <rtems/score/wkspace.h>
    2424
  • cpukit/rtems/src/taskvariableadd.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/score/threadimpl.h>
     23#include <rtems/score/wkspace.h>
    2224#include <rtems/config.h>
    23 #include <rtems/rtems/tasksimpl.h>
    24 #include <rtems/score/wkspace.h>
    2525
    2626rtems_status_code rtems_task_variable_add(
  • cpukit/rtems/src/taskvariabledelete.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/threadimpl.h>
     23#include <rtems/score/wkspace.h>
    2224#include <rtems/config.h>
    23 #include <rtems/rtems/tasksimpl.h>
    24 #include <rtems/score/wkspace.h>
    2525
    2626rtems_status_code rtems_task_variable_delete(
  • cpukit/rtems/src/taskvariableget.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/rtems/tasksimpl.h>
     22#include <rtems/score/threadimpl.h>
     23#include <rtems/score/wkspace.h>
    2224#include <rtems/config.h>
    23 #include <rtems/rtems/tasksimpl.h>
    24 #include <rtems/score/wkspace.h>
    2525
    2626/*
  • cpukit/rtems/src/taskwakeafter.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/rtems/tasksimpl.h>
    22 #include <rtems/score/thread.h>
     21#include <rtems/rtems/tasks.h>
     22#include <rtems/score/threadimpl.h>
    2323#include <rtems/score/schedulerimpl.h>
    2424#include <rtems/score/watchdogimpl.h>
  • cpukit/rtems/src/taskwakewhen.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/rtems/status.h>
    23 #include <rtems/rtems/support.h>
    24 #include <rtems/rtems/modes.h>
     21#include <rtems/rtems/tasks.h>
    2522#include <rtems/rtems/clock.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/stack.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/rtems/tasksimpl.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/tod.h>
    33 #include <rtems/score/wkspace.h>
    34 #include <rtems/score/apiext.h>
     23#include <rtems/score/threadimpl.h>
    3524#include <rtems/score/watchdogimpl.h>
    3625
  • cpukit/rtems/src/timerserver.c

    rf0bfd7d8 r5618c37a  
    2727#endif
    2828
    29 #include <rtems/system.h>
    30 #include <rtems/rtems/status.h>
    31 #include <rtems/rtems/support.h>
    32 #include <rtems/score/object.h>
    33 #include <rtems/score/thread.h>
    3429#include <rtems/rtems/timerimpl.h>
     30#include <rtems/rtems/tasksimpl.h>
     31#include <rtems/score/threadimpl.h>
    3532#include <rtems/score/tod.h>
    3633#include <rtems/score/watchdogimpl.h>
    37 
    38 #include <rtems/rtems/tasksimpl.h>
    39 #include <rtems/rtems/support.h>
    40 #include <rtems/score/thread.h>
    4134
    4235static Timer_server_Control _Timer_server_Default;
  • cpukit/sapi/src/exinit.c

    rf0bfd7d8 r5618c37a  
    5151#include <rtems/score/prioritybitmapimpl.h>
    5252#include <rtems/score/schedulerimpl.h>
    53 #include <rtems/score/thread.h>
     53#include <rtems/score/threadimpl.h>
    5454#include <rtems/score/tod.h>
    5555#include <rtems/score/userextimpl.h>
  • cpukit/sapi/src/exshutdown.c

    rf0bfd7d8 r5618c37a  
    1414#endif
    1515
    16 #include <rtems/system.h>
    1716#include <rtems/init.h>
    1817#include <rtems/score/sysstate.h>
    19 #include <rtems/score/thread.h>
     18#include <rtems/score/threadimpl.h>
    2019#include <rtems/score/interr.h>
    2120
  • cpukit/score/Makefile.am

    rf0bfd7d8 r5618c37a  
    5959include_rtems_score_HEADERS += include/rtems/score/sysstate.h
    6060include_rtems_score_HEADERS += include/rtems/score/thread.h
     61include_rtems_score_HEADERS += include/rtems/score/threadimpl.h
    6162include_rtems_score_HEADERS += include/rtems/score/threaddispatch.h
    6263include_rtems_score_HEADERS += include/rtems/score/threadq.h
     
    101102include_rtems_score_HEADERS += inline/rtems/score/object.inl
    102103include_rtems_score_HEADERS += inline/rtems/score/states.inl
    103 include_rtems_score_HEADERS += inline/rtems/score/thread.inl
    104104include_rtems_score_HEADERS += inline/rtems/score/threadq.inl
    105105include_rtems_score_HEADERS += inline/rtems/score/tod.inl
  • cpukit/score/include/rtems/score/coremuteximpl.h

    rf0bfd7d8 r5618c37a  
    2222#include <rtems/score/chainimpl.h>
    2323#include <rtems/score/sysstate.h>
    24 #include <rtems/score/threaddispatch.h>
     24#include <rtems/score/threadimpl.h>
    2525
    2626#ifdef __cplusplus
  • cpukit/score/include/rtems/score/thread.h

    rf0bfd7d8 r5618c37a  
    2020#define _RTEMS_SCORE_THREAD_H
    2121
     22#include <rtems/score/context.h>
     23#if defined(RTEMS_MULTIPROCESSING)
     24#include <rtems/score/mppkt.h>
     25#endif
     26#include <rtems/score/object.h>
     27#include <rtems/score/percpu.h>
     28#include <rtems/score/priority.h>
     29#include <rtems/score/stack.h>
     30#include <rtems/score/states.h>
     31#include <rtems/score/tqdata.h>
     32#include <rtems/score/watchdog.h>
     33
     34#ifdef __cplusplus
     35extern "C" {
     36#endif
     37
    2238/**
    2339 *  @defgroup ScoreThread Thread Handler
     
    5066  #define RTEMS_SCORE_THREAD_ENABLE_USER_PROVIDED_STACK_VIA_API
    5167#endif
    52 
    53 #ifdef __cplusplus
    54 extern "C" {
    55 #endif
    56 
    57 #include <rtems/score/percpu.h>
    58 #include <rtems/score/context.h>
    59 #include <rtems/score/cpu.h>
    60 #include <rtems/score/isr.h>
    61 #if defined(RTEMS_MULTIPROCESSING)
    62 #include <rtems/score/mppkt.h>
    63 #endif
    64 #include <rtems/score/object.h>
    65 #include <rtems/score/priority.h>
    66 #include <rtems/score/scheduler.h>
    67 #include <rtems/score/stack.h>
    68 #include <rtems/score/states.h>
    69 #include <rtems/score/tod.h>
    70 #include <rtems/score/tqdata.h>
    71 #include <rtems/score/watchdog.h>
    7268
    7369/*
     
    237233
    238234/**
    239  *  The following structure contains the information necessary to manage
    240  *  a thread which it is  waiting for a resource.
    241  */
    242 #define THREAD_STATUS_PROXY_BLOCKING 0x1111111
    243 
    244 /**
    245235 *  @brief Union type to hold a pointer to an immutable or a mutable object.
    246236 *
     
    451441};
    452442
    453 /**
    454  *  Self for the GNU Ada Run-Time
    455  */
    456 SCORE_EXTERN void *rtems_ada_self;
    457 
    458 /**
    459  *  The following defines the information control block used to
    460  *  manage this class of objects.
    461  */
    462 SCORE_EXTERN Objects_Information _Thread_Internal_information;
    463 
    464 /**
    465  *  The following context area contains the context of the "thread"
    466  *  which invoked the start multitasking routine.  This context is
    467  *  restored as the last action of the stop multitasking routine.  Thus
    468  *  control of the processor can be returned to the environment
    469  *  which initiated the system.
    470  */
    471 SCORE_EXTERN Context_Control _Thread_BSP_context;
    472 
    473 /**
    474  *  The following holds how many user extensions are in the system.  This
    475  *  is used to determine how many user extension data areas to allocate
    476  *  per thread.
    477  */
    478 SCORE_EXTERN uint32_t   _Thread_Maximum_extensions;
    479 
    480 /**
    481  *  The following is used to manage the length of a timeslice quantum.
    482  */
    483 SCORE_EXTERN uint32_t   _Thread_Ticks_per_timeslice;
    484 
    485 /**
    486  *  The following points to the thread whose floating point
    487  *  context is currently loaded.
    488  */
    489 #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )
    490 SCORE_EXTERN Thread_Control *_Thread_Allocated_fp;
    491 #endif
    492 
    493 #if !defined(__DYNAMIC_REENT__)
    494 /**
    495  * The C library re-enter-rant global pointer. Some C library implementations
    496  * such as newlib have a single global pointer that changed during a context
    497  * switch. The pointer points to that global pointer. The Thread control block
    498  * holds a pointer to the task specific data.
    499  */
    500 SCORE_EXTERN struct _reent **_Thread_libc_reent;
    501 #endif
    502 
    503 /**
    504  *  @brief Initialize thread handler.
    505  *
    506  *  This routine performs the initialization necessary for this handler.
    507  */
    508 void _Thread_Handler_initialization(void);
    509 
    510 /**
    511  *  @brief Create idle thread.
    512  *
    513  *  This routine creates the idle thread.
    514  *
    515  *  @warning No thread should be created before this one.
    516  */
    517 void _Thread_Create_idle(void);
    518 
    519 /**
    520  *  @brief Start thread multitasking.
    521  *
    522  *  This routine initiates multitasking.  It is invoked only as
    523  *  part of initialization and its invocation is the last act of
    524  *  the non-multitasking part of the system initialization.
    525  *
    526  *
    527  *  - INTERRUPT LATENCY:
    528  *    + ready chain
    529  *    + select heir
    530  */
    531 void _Thread_Start_multitasking( void );
    532 
    533 /**
    534  *  @brief Allocate the requested stack space for the thread.
    535  *
    536  *  Allocate the requested stack space for the thread.
    537  *  Set the Start.stack field to the address of the stack.
    538  *
    539  *  @param[in] the_thread is the thread where the stack space is requested
    540  *
    541  *  @retval actual size allocated after any adjustment
    542  *  @retval zero if the allocation failed
    543  */
    544 size_t _Thread_Stack_Allocate(
    545   Thread_Control *the_thread,
    546   size_t          stack_size
    547 );
    548 
    549 /**
    550  *  @brief Deallocate thread stack.
    551  *
    552  *  Deallocate the Thread's stack.
    553  */
    554 void _Thread_Stack_Free(
    555   Thread_Control *the_thread
    556 );
    557 
    558 /**
    559  *  @brief Initialize thread.
    560  *
    561  *  This routine initializes the specified the thread.  It allocates
    562  *  all memory associated with this thread.  It completes by adding
    563  *  the thread to the local object table so operations on this
    564  *  thread id are allowed.
    565  *
    566  *  @note If stack_area is NULL, it is allocated from the workspace.
    567  *
    568  *  @note If the stack is allocated from the workspace, then it is
    569  *        guaranteed to be of at least minimum size.
    570  */
    571 bool _Thread_Initialize(
    572   Objects_Information                  *information,
    573   Thread_Control                       *the_thread,
    574   void                                 *stack_area,
    575   size_t                                stack_size,
    576   bool                                  is_fp,
    577   Priority_Control                      priority,
    578   bool                                  is_preemptible,
    579   Thread_CPU_budget_algorithms          budget_algorithm,
    580   Thread_CPU_budget_algorithm_callout   budget_callout,
    581   uint32_t                              isr_level,
    582   Objects_Name                          name
    583 );
    584 
    585 /**
    586  *  @brief Initializes thread and executes it.
    587  *
    588  *  This routine initializes the executable information for a thread
    589  *  and makes it ready to execute.  After this routine executes, the
    590  *  thread competes with all other threads for CPU time.
    591  *
    592  *  @param the_thread is the thread to be initialized
    593  *  @param the_prototype
    594  *  @param entry_point
    595  *  @param pointer_argument
    596  *  @param numeric_argument
    597  *  @param[in,out] processor The processor if used to start an idle thread
    598  *  during system initialization.  Must be set to @c NULL to start a normal
    599  *  thread.
    600  */
    601 bool _Thread_Start(
    602   Thread_Control            *the_thread,
    603   Thread_Start_types         the_prototype,
    604   void                      *entry_point,
    605   void                      *pointer_argument,
    606   Thread_Entry_numeric_type  numeric_argument,
    607   Per_CPU_Control           *processor
    608 );
    609 
    610 /**
    611  *  @brief Restarts the specified thread.
    612  *
    613  *  This support routine restarts the specified task in a way that the
    614  *  next time this thread executes, it will begin execution at its
    615  *  original starting point.
    616  *
    617  *  TODO:  multiple task arg profiles
    618  */
    619 bool _Thread_Restart(
    620   Thread_Control            *the_thread,
    621   void                      *pointer_argument,
    622   Thread_Entry_numeric_type  numeric_argument
    623 );
    624 
    625 /**
    626  *  @brief Resets a thread to its initial state.
    627  *
    628  *  This routine resets a thread to its initial state but does
    629  *  not restart it. Some APIs do this in separate
    630  *  operations and this division helps support this.
    631  *
    632  *  @param[in] the_thread is the thread to resets
    633  *  @param[in] pointer_argument
    634  *  @param[in] numeric_argument
    635  */
    636 void _Thread_Reset(
    637   Thread_Control            *the_thread,
    638   void                      *pointer_argument,
    639   Thread_Entry_numeric_type  numeric_argument
    640 );
    641 
    642 /**
    643  *  @brief Frees all memory associated with the specified thread.
    644  *
    645  *  This routine frees all memory associated with the specified
    646  *  thread and removes it from the local object table so no further
    647  *  operations on this thread are allowed.
    648  */
    649 void _Thread_Close(
    650   Objects_Information  *information,
    651   Thread_Control       *the_thread
    652 );
    653 
    654 /**
    655  *  @brief Removes any set states for @a the_thread.
    656  *
    657  *  This routine removes any set states for @a the_thread.  It performs
    658  *  any necessary scheduling operations including the selection of
    659  *  a new heir thread.
    660  *
    661  *  - INTERRUPT LATENCY:
    662  *    + ready chain
    663  *    + select heir
    664  */
    665 void _Thread_Ready(
    666   Thread_Control *the_thread
    667 );
    668 
    669 /**
    670  *  @brief Clears the indicated STATES for @a the_thread.
    671  *
    672  *  This routine clears the indicated STATES for @a the_thread.  It performs
    673  *  any necessary scheduling operations including the selection of
    674  *  a new heir thread.
    675  *
    676  *  - INTERRUPT LATENCY:
    677  *    + priority map
    678  *    + select heir
    679  */
    680 void _Thread_Clear_state(
    681   Thread_Control *the_thread,
    682   States_Control  state
    683 );
    684 
    685 /**
    686  *  @brief Sets the indicated @a state for @a the_thread.
    687  *
    688  *  This routine sets the indicated @a state for @a the_thread.  It performs
    689  *  any necessary scheduling operations including the selection of
    690  *  a new heir thread.
    691  *
    692  *  @param[in] the_thread is the thread to set the state for.
    693  *  @param[in] state is the state to set the_thread to.
    694  *
    695  *  - INTERRUPT LATENCY:
    696  *   + ready chain
    697  *   + select map
    698  */
    699 void _Thread_Set_state(
    700   Thread_Control *the_thread,
    701   States_Control  state
    702 );
    703 
    704 /**
    705  *  @brief Sets the transient state for a thread.
    706  *
    707  *  This routine sets the Transient state for @a the_thread.  It performs
    708  *  any necessary scheduling operations including the selection of
    709  *  a new heir thread.
    710  *
    711  *  @param[in] the_thread is the thread to preform the action upon.
    712  *
    713  *  - INTERRUPT LATENCY:
    714  *    + single case
    715  */
    716 void _Thread_Set_transient(
    717   Thread_Control *the_thread
    718 );
    719 
    720 /**
    721  *  @brief Initializes enviroment for a thread.
    722  *
    723  *  This routine initializes the context of @a the_thread to its
    724  *  appropriate starting state.
    725  *
    726  *  @param[in] the_thread is the pointer to the thread control block.
    727  */
    728 void _Thread_Load_environment(
    729   Thread_Control *the_thread
    730 );
    731 
    732 /**
    733  *  @brief Wrapper function for all threads.
    734  *
    735  *  This routine is the wrapper function for all threads.  It is
    736  *  the starting point for all threads.  The user provided thread
    737  *  entry point is invoked by this routine.  Operations
    738  *  which must be performed immediately before and after the user's
    739  *  thread executes are found here.
    740  *
    741  *  @note On entry, it is assumed all interrupts are blocked and that this
    742  *  routine needs to set the initial isr level.  This may or may not
    743  *  actually be needed by the context switch routine and as a result
    744  *  interrupts may already be at there proper level.  Either way,
    745  *  setting the initial isr level properly here is safe.
    746  */
    747 void _Thread_Handler( void );
    748 
    749 /**
    750  *  @brief Ended the delay of a thread.
    751  *
    752  *  This routine is invoked when a thread must be unblocked at the
    753  *  end of a time based delay (i.e. wake after or wake when).
    754  *  It is called by the watchdog handler.
    755  *
    756  *  @param[in] id is the thread id
    757  */
    758 void _Thread_Delay_ended(
    759   Objects_Id  id,
    760   void       *ignored
    761 );
    762 
    763 /**
    764  *  @brief Change the priority of a thread.
    765  *
    766  *  This routine changes the current priority of @a the_thread to
    767  *  @a new_priority.  It performs any necessary scheduling operations
    768  *  including the selection of a new heir thread.
    769  *
    770  *  @param[in] the_thread is the thread to change
    771  *  @param[in] new_priority is the priority to set @a the_thread to
    772  *  @param[in] prepend_it is a switch to prepend the thread
    773  */
    774 void _Thread_Change_priority (
    775   Thread_Control   *the_thread,
    776   Priority_Control  new_priority,
    777   bool              prepend_it
    778 );
    779 
    780 /**
    781  *  @brief Set thread priority.
    782  *
    783  *  This routine updates the priority related fields in the_thread
    784  *  control block to indicate the current priority is now new_priority.
    785  */
    786 void _Thread_Set_priority(
    787   Thread_Control   *the_thread,
    788   Priority_Control  new_priority
    789 );
    790 
    791 /**
    792  *  This routine updates the related suspend fields in the_thread
    793  *  control block to indicate the current nested level.
    794  */
    795 #define _Thread_Suspend( _the_thread ) \
    796         _Thread_Set_state( _the_thread, STATES_SUSPENDED )
    797 
    798 /**
    799  *  This routine updates the related suspend fields in the_thread
    800  *  control block to indicate the current nested level.  A force
    801  *  parameter of true will force a resume and clear the suspend count.
    802  */
    803 #define _Thread_Resume( _the_thread ) \
    804         _Thread_Clear_state( _the_thread, STATES_SUSPENDED )
    805 
    806443#if (CPU_PROVIDES_IDLE_THREAD_BODY == FALSE)
    807444/**
     
    829466
    830467/**
    831  *  @brief Maps thread Id to a TCB pointer.
    832  *
    833  *  This function maps thread IDs to thread control
    834  *  blocks.  If ID corresponds to a local thread, then it
    835  *  returns the_thread control pointer which maps to ID
    836  *  and @a location is set to OBJECTS_LOCAL.  If the thread ID is
    837  *  global and resides on a remote node, then location is set
    838  *  to OBJECTS_REMOTE, and the_thread is undefined.
    839  *  Otherwise, location is set to OBJECTS_ERROR and
    840  *  the_thread is undefined.
    841  *
    842  *  @param[in] id is the id of the thread.
    843  *  @param[in] location is the location of the block.
    844  *
    845  *  @note  The performance of many RTEMS services depends upon
    846  *         the quick execution of the "good object" path in this
    847  *         routine.  If there is a possibility of saving a few
    848  *         cycles off the execution time, this routine is worth
    849  *         further optimization attention.
    850  */
    851 Thread_Control *_Thread_Get (
    852   Objects_Id         id,
    853   Objects_Locations *location
    854 );
    855 
    856 /**
    857  *  @brief Cancel a blocking operation due to ISR.
    858  *
    859  *  This method is used to cancel a blocking operation that was
    860  *  satisfied from an ISR while the thread executing was in the
    861  *  process of blocking.
    862  *
    863  *  This method will restore the previous ISR disable level during the cancel
    864  *  operation.  Thus it is an implicit _ISR_Enable().
    865  *
    866  *  @param[in] sync_state is the synchronization state
    867  *  @param[in] the_thread is the thread whose blocking is canceled
    868  *  @param[in] level is the previous ISR disable level
    869  *
    870  *  @note This is a rare routine in RTEMS.  It is called with
    871  *        interrupts disabled and only when an ISR completed
    872  *        a blocking condition in process.
    873  */
    874 void _Thread_blocking_operation_Cancel(
    875   Thread_blocking_operation_States  sync_state,
    876   Thread_Control                   *the_thread,
    877   ISR_Level                         level
    878 );
    879 
    880 /**
    881468 * @brief Returns the thread control block of the executing thread.
    882469 *
     
    906493}
    907494
    908 #ifndef __RTEMS_APPLICATION__
    909 #include <rtems/score/thread.inl>
    910 #endif
    911 #if defined(RTEMS_MULTIPROCESSING)
    912 #include <rtems/score/threadmp.h>
    913 #endif
     495/**@}*/
    914496
    915497#ifdef __cplusplus
     
    917499#endif
    918500
    919 /**@}*/
    920 
    921501#endif
    922502/* end of include file */
  • cpukit/score/include/rtems/score/threadmp.h

    rf0bfd7d8 r5618c37a  
    1919#ifndef _RTEMS_SCORE_THREADMP_H
    2020#define _RTEMS_SCORE_THREADMP_H
     21
     22#ifndef _RTEMS_SCORE_THREADIMPL_H
     23# error "Never use <rtems/score/threadmp.h> directly; include <rtems/score/threadimpl.h> instead."
     24#endif
    2125
    2226/**
  • cpukit/score/preinstall.am

    rf0bfd7d8 r5618c37a  
    216216PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/thread.h
    217217
     218$(PROJECT_INCLUDE)/rtems/score/threadimpl.h: include/rtems/score/threadimpl.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
     219        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadimpl.h
     220PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/threadimpl.h
     221
    218222$(PROJECT_INCLUDE)/rtems/score/threaddispatch.h: include/rtems/score/threaddispatch.h $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
    219223        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threaddispatch.h
     
    332336PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/states.inl
    333337
    334 $(PROJECT_INCLUDE)/rtems/score/thread.inl: inline/rtems/score/thread.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
    335         $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/thread.inl
    336 PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/score/thread.inl
    337 
    338338$(PROJECT_INCLUDE)/rtems/score/threadq.inl: inline/rtems/score/threadq.inl $(PROJECT_INCLUDE)/rtems/score/$(dirstamp)
    339339        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/score/threadq.inl
  • cpukit/score/src/corerwlocktimeout.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    2221#include <rtems/score/corerwlockimpl.h>
    23 #include <rtems/score/threaddispatch.h>
     22#include <rtems/score/threadimpl.h>
    2423
    2524void _CORE_RWLock_Timeout(
  • cpukit/score/src/heap.c

    rf0bfd7d8 r5618c37a  
    2323
    2424#include <rtems/score/heapimpl.h>
     25#include <rtems/score/threadimpl.h>
    2526#include <rtems/score/interr.h>
    2627
  • cpukit/score/src/heapfree.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    2322#include <rtems/score/heapimpl.h>
     23#include <rtems/score/threadimpl.h>
    2424
    2525#ifndef HEAP_PROTECTION
  • cpukit/score/src/mpci.c

    rf0bfd7d8 r5618c37a  
    2828#include <rtems/score/interr.h>
    2929#include <rtems/score/states.h>
    30 #include <rtems/score/thread.h>
     30#include <rtems/score/threadimpl.h>
    3131#include <rtems/score/threadq.h>
    3232#include <rtems/score/tqdata.h>
  • cpukit/score/src/objectgetnameasstring.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    2322#include <rtems/score/object.h>
    24 #include <rtems/score/thread.h>
    25 #include <stdlib.h>
     23#include <rtems/score/threadimpl.h>
     24
    2625#include <ctype.h>
    27 #include <inttypes.h>
    2826
    2927/*
  • cpukit/score/src/objectidtoname.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    2221#include <rtems/score/object.h>
    23 #include <rtems/score/thread.h>
     22#include <rtems/score/threadimpl.h>
    2423
    2524Objects_Name_or_id_lookup_errors _Objects_Id_to_name (
  • cpukit/score/src/schedulercbs.c

    rf0bfd7d8 r5618c37a  
    2020
    2121#include <rtems/score/schedulercbs.h>
    22 #include <rtems/score/thread.h>
     22#include <rtems/score/threadimpl.h>
    2323#include <rtems/score/wkspace.h>
    2424
  • cpukit/score/src/schedulercbsattachthread.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/config.h>
    23 #include <rtems/score/scheduler.h>
    2421#include <rtems/score/schedulercbs.h>
    25 #include <rtems/score/threaddispatch.h>
    26 #include <rtems/rtems/object.h>
     22#include <rtems/score/threadimpl.h>
    2723
    2824int _Scheduler_CBS_Attach_thread (
  • cpukit/score/src/schedulercbsdetachthread.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/config.h>
    24 #include <rtems/score/scheduler.h>
    2522#include <rtems/score/schedulercbs.h>
    26 #include <rtems/score/threaddispatch.h>
     23#include <rtems/score/threadimpl.h>
    2724
    2825int _Scheduler_CBS_Detach_thread (
  • cpukit/score/src/schedulercbsgetexecutiontime.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/config.h>
    24 #include <rtems/score/scheduler.h>
    2522#include <rtems/score/schedulercbs.h>
    26 #include <rtems/score/threaddispatch.h>
     23#include <rtems/score/threadimpl.h>
    2724
    2825int _Scheduler_CBS_Get_execution_time (
  • cpukit/score/src/schedulercbsgetremainingbudget.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/config.h>
    23 #include <rtems/score/scheduler.h>
    2421#include <rtems/score/schedulercbs.h>
    25 #include <rtems/score/threaddispatch.h>
     22#include <rtems/score/threadimpl.h>
    2623
    2724int _Scheduler_CBS_Get_remaining_budget (
  • cpukit/score/src/schedulercbsreleasejob.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/config.h>
    24 #include <rtems/score/scheduler.h>
    2522#include <rtems/score/schedulercbs.h>
     23#include <rtems/score/threadimpl.h>
    2624#include <rtems/score/watchdogimpl.h>
    2725
  • cpukit/score/src/schedulercbsunblock.c

    rf0bfd7d8 r5618c37a  
    2222#include <rtems/score/schedulercbs.h>
    2323#include <rtems/score/schedulerimpl.h>
     24#include <rtems/score/threadimpl.h>
    2425#include <rtems/score/watchdogimpl.h>
    2526
  • cpukit/score/src/schedulerdefaulttick.c

    rf0bfd7d8 r5618c37a  
    2121
    2222#include <rtems/score/schedulerimpl.h>
    23 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2424#include <rtems/score/smp.h>
    2525
  • cpukit/score/src/scheduleredfblock.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/priority.h>
    25 #include <rtems/score/scheduler.h>
    2622#include <rtems/score/scheduleredf.h>
    27 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2824
    2925void _Scheduler_EDF_Block(
  • cpukit/score/src/scheduleredfreleasejob.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/config.h>
    23 #include <rtems/score/scheduler.h>
    2421#include <rtems/score/scheduleredf.h>
     22#include <rtems/score/threadimpl.h>
    2523#include <rtems/score/watchdogimpl.h>
    2624
  • cpukit/score/src/schedulerpriorityblock.c

    rf0bfd7d8 r5618c37a  
    2222
    2323#include <rtems/score/schedulerpriorityimpl.h>
     24#include <rtems/score/threadimpl.h>
    2425
    2526void _Scheduler_priority_Block(
  • cpukit/score/src/schedulerpriorityyield.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/score/schedulerpriorityimpl.h>
    2222#include <rtems/score/isr.h>
     23#include <rtems/score/threadimpl.h>
    2324
    2425void _Scheduler_priority_Yield( Thread_Control *thread )
  • cpukit/score/src/schedulersimpleblock.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/scheduler.h>
    29 #include <rtems/score/thread.h>
    3022#include <rtems/score/schedulersimple.h>
     23#include <rtems/score/threadimpl.h>
    3124
    3225void _Scheduler_simple_Block(
  • cpukit/score/src/schedulersimpleyield.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/score/schedulersimpleimpl.h>
    2222#include <rtems/score/isr.h>
     23#include <rtems/score/threadimpl.h>
    2324
    2425void _Scheduler_simple_Yield( Thread_Control *thread )
  • cpukit/score/src/smp.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    2221#include <rtems/bspsmp.h>
    23 #include <rtems/score/smp.h>
    2422#include <rtems/score/thread.h>
    2523#include <rtems/score/threaddispatch.h>
     24#include <rtems/score/smp.h>
     25#include <rtems/score/sysstate.h>
    2626
    2727#if defined(RTEMS_DEBUG)
  • cpukit/score/src/thread.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/score/threadimpl.h>
     22#include <rtems/score/interr.h>
     23#include <rtems/score/sysstate.h>
    2224#include <rtems/config.h>
    23 #include <rtems/score/apiext.h>
    24 #include <rtems/score/context.h>
    25 #include <rtems/score/interr.h>
    26 #include <rtems/score/isr.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/priority.h>
    29 #include <rtems/score/scheduler.h>
    30 #include <rtems/score/states.h>
    31 #include <rtems/score/sysstate.h>
    32 #include <rtems/score/thread.h>
    33 #include <rtems/score/threadq.h>
    34 #include <rtems/score/wkspace.h>
    35 #include <rtems/config.h>
    36 
    37 #if defined(RTEMS_SMP)
    38   #include <rtems/bspsmp.h>
    39 #endif
    4025
    4126void _Thread_Handler_initialization(void)
     
    8469   *  coupled multiprocessing system, account for the MPCI Server Thread.
    8570   */
    86   #if defined(RTEMS_SMP)
    87     maximum_internal_threads = rtems_configuration_get_maximum_processors();
    88   #else
    89     maximum_internal_threads = 1;
    90   #endif
     71  maximum_internal_threads = rtems_configuration_get_maximum_processors();
    9172
    9273  #if defined(RTEMS_MULTIPROCESSING)
  • cpukit/score/src/threadblockingoperationcancel.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/thread.h>
     21#include <rtems/score/threadimpl.h>
    2322#if defined(RTEMS_DEBUG)
    2423#include <rtems/score/interr.h>
  • cpukit/score/src/threadchangepriority.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/score/thread.h>
     22#include <rtems/score/threadimpl.h>
    2323#include <rtems/score/isr.h>
    2424#include <rtems/score/schedulerimpl.h>
  • cpukit/score/src/threadclearstate.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/score/thread.h>
     21#include <rtems/score/threadimpl.h>
    2222#include <rtems/score/schedulerimpl.h>
    23 #include <rtems/score/states.h>
    2423
    2524void _Thread_Clear_state(
  • cpukit/score/src/threadclose.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/score/thread.h>
    22 #include <rtems/score/object.h>
     21#include <rtems/score/threadimpl.h>
    2322#include <rtems/score/schedulerimpl.h>
    24 #include <rtems/score/threaddispatch.h>
    2523#include <rtems/score/threadq.h>
    2624#include <rtems/score/userextimpl.h>
  • cpukit/score/src/threadcreateidle.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/smp.h>
     21#include <rtems/score/threadimpl.h>
    2922#include <rtems/score/stackimpl.h>
    30 #include <rtems/score/states.h>
    31 #include <rtems/score/thread.h>
    32 #include <rtems/score/threadq.h>
    33 #include <rtems/score/wkspace.h>
    3423#include <rtems/config.h>
    3524
  • cpukit/score/src/threaddelayended.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threaddispatch.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/wkspace.h>
     21#include <rtems/score/threadimpl.h>
    3322
    3423void _Thread_Delay_ended(
  • cpukit/score/src/threaddispatch.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
     21#include <rtems/score/threaddispatch.h>
    2222#include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    2523#include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threaddispatch.h>
    31 #include <rtems/score/threadq.h>
     24#include <rtems/score/threadimpl.h>
     25#include <rtems/score/tod.h>
    3226#include <rtems/score/userextimpl.h>
    3327#include <rtems/score/wkspace.h>
    34 
    35 #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__
    36   #include <rtems/score/timestamp.h>
    37 #endif
    38 
    39 #if defined(RTEMS_SMP)
    40   #include <rtems/score/smp.h>
    41 #endif
    4228
    4329void _Thread_Dispatch( void )
  • cpukit/score/src/threadget.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/apiext.h>
    24 #include <rtems/score/context.h>
    25 #include <rtems/score/interr.h>
    26 #include <rtems/score/isr.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/priority.h>
    29 #include <rtems/score/states.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threaddispatch.h>
    32 #include <rtems/score/threadq.h>
     22#include <rtems/score/threadimpl.h>
    3323
    3424Thread_Control *_Thread_Get (
  • cpukit/score/src/threadhandler.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
     21#include <rtems/score/threadimpl.h>
    2422#include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threaddispatch.h>
    31 #include <rtems/score/threadq.h>
     23#include <rtems/score/isrlevel.h>
    3224#include <rtems/score/userextimpl.h>
    33 #include <rtems/score/wkspace.h>
    34 #if defined(RTEMS_SMP)
    35   #include <rtems/score/smp.h>
    36 #endif
    3725
    3826/*
  • cpukit/score/src/threadinitialize.c

    rf0bfd7d8 r5618c37a  
    1818#endif
    1919
    20 #include <rtems/score/thread.h>
    21 #include <rtems/config.h>
    22 #include <rtems/score/object.h>
    23 #include <rtems/score/priority.h>
     20#include <rtems/score/threadimpl.h>
    2421#include <rtems/score/schedulerimpl.h>
    2522#include <rtems/score/stackimpl.h>
     
    2825#include <rtems/score/watchdogimpl.h>
    2926#include <rtems/score/wkspace.h>
     27#include <rtems/config.h>
    3028
    3129bool _Thread_Initialize(
  • cpukit/score/src/threadloadenv.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/apiext.h>
    24 #include <rtems/score/context.h>
    25 #include <rtems/score/interr.h>
    26 #include <rtems/score/isr.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/priority.h>
    29 #include <rtems/score/states.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/wkspace.h>
     22#include <rtems/score/threadimpl.h>
    3323
    3424void _Thread_Load_environment(
  • cpukit/score/src/threadmp.c

    rf0bfd7d8 r5618c37a  
    2121#include <rtems/system.h>
    2222#include <rtems/score/priority.h>
    23 #include <rtems/score/thread.h>
     23#include <rtems/score/threadimpl.h>
    2424#include <rtems/score/mpci.h>
    2525#include <rtems/score/wkspace.h>
  • cpukit/score/src/threadqdequeuefifo.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/chain.h>
    23 #include <rtems/score/isr.h>
    24 #include <rtems/score/object.h>
    25 #include <rtems/score/states.h>
    26 #include <rtems/score/thread.h>
    2721#include <rtems/score/threadq.h>
    28 #include <rtems/score/tqdata.h>
     22#include <rtems/score/chainimpl.h>
     23#include <rtems/score/isrlevel.h>
     24#include <rtems/score/threadimpl.h>
    2925#include <rtems/score/watchdogimpl.h>
    3026
  • cpukit/score/src/threadqdequeuepriority.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/chain.h>
    23 #include <rtems/score/isr.h>
    24 #include <rtems/score/object.h>
    25 #include <rtems/score/states.h>
    26 #include <rtems/score/thread.h>
    2721#include <rtems/score/threadq.h>
    28 #include <rtems/score/tqdata.h>
     22#include <rtems/score/chainimpl.h>
     23#include <rtems/score/isrlevel.h>
     24#include <rtems/score/threadimpl.h>
    2925#include <rtems/score/watchdogimpl.h>
    3026
  • cpukit/score/src/threadqenqueue.c

    rf0bfd7d8 r5618c37a  
    2222#endif
    2323
    24 #include <rtems/system.h>
    25 #include <rtems/score/chain.h>
    26 #include <rtems/score/isr.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    3024#include <rtems/score/threadq.h>
    31 #include <rtems/score/tqdata.h>
     25#include <rtems/score/isrlevel.h>
     26#include <rtems/score/threadimpl.h>
    3227#include <rtems/score/watchdogimpl.h>
    3328
  • cpukit/score/src/threadqextractfifo.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/chain.h>
    24 #include <rtems/score/isr.h>
    25 #include <rtems/score/object.h>
    26 #include <rtems/score/states.h>
    27 #include <rtems/score/thread.h>
    2822#include <rtems/score/threadq.h>
    29 #include <rtems/score/tqdata.h>
     23#include <rtems/score/chainimpl.h>
     24#include <rtems/score/isrlevel.h>
     25#include <rtems/score/threadimpl.h>
    3026#include <rtems/score/watchdogimpl.h>
    3127
  • cpukit/score/src/threadqextractpriority.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/chain.h>
    23 #include <rtems/score/isr.h>
    24 #include <rtems/score/object.h>
    25 #include <rtems/score/states.h>
    26 #include <rtems/score/thread.h>
    2721#include <rtems/score/threadq.h>
    28 #include <rtems/score/tqdata.h>
     22#include <rtems/score/chainimpl.h>
     23#include <rtems/score/isrlevel.h>
     24#include <rtems/score/threadimpl.h>
    2925#include <rtems/score/watchdogimpl.h>
    3026
  • cpukit/score/src/threadqprocesstimeout.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/chain.h>
    23 #include <rtems/score/isr.h>
    24 #include <rtems/score/object.h>
    25 #include <rtems/score/states.h>
    26 #include <rtems/score/thread.h>
    2721#include <rtems/score/threadq.h>
    28 #include <rtems/score/tqdata.h>
     22#include <rtems/score/threadimpl.h>
    2923
    3024void _Thread_queue_Process_timeout(
  • cpukit/score/src/threadqtimeout.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/chain.h>
    23 #include <rtems/score/isr.h>
    24 #include <rtems/score/object.h>
    25 #include <rtems/score/states.h>
    26 #include <rtems/score/thread.h>
    27 #include <rtems/score/threaddispatch.h>
    2821#include <rtems/score/threadq.h>
    29 #include <rtems/score/tqdata.h>
     22#include <rtems/score/threadimpl.h>
    3023
    3124void _Thread_queue_Timeout(
  • cpukit/score/src/threadready.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/score/thread.h>
    22 #include <rtems/score/isr.h>
     21#include <rtems/score/threadimpl.h>
     22#include <rtems/score/isrlevel.h>
    2323#include <rtems/score/schedulerimpl.h>
    2424
  • cpukit/score/src/threadreset.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
     21#include <rtems/score/threadimpl.h>
    3022#include <rtems/score/threadq.h>
    31 #include <rtems/score/wkspace.h>
    3223#include <rtems/score/watchdogimpl.h>
    3324
  • cpukit/score/src/threadrestart.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
     21#include <rtems/score/threadimpl.h>
    3122#include <rtems/score/userextimpl.h>
    32 #include <rtems/score/wkspace.h>
    3323
    3424bool _Thread_Restart(
  • cpukit/score/src/threadsetpriority.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/score/thread.h>
     21#include <rtems/score/threadimpl.h>
    2222#include <rtems/score/schedulerimpl.h>
    2323
  • cpukit/score/src/threadsetstate.c

    rf0bfd7d8 r5618c37a  
    2222#endif
    2323
    24 #include <rtems/score/thread.h>
    25 #include <rtems/score/isr.h>
     24#include <rtems/score/threadimpl.h>
     25#include <rtems/score/isrlevel.h>
    2626#include <rtems/score/schedulerimpl.h>
    2727
  • cpukit/score/src/threadsettransient.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/score/thread.h>
    23 #include <rtems/score/isr.h>
     22#include <rtems/score/threadimpl.h>
     23#include <rtems/score/isrlevel.h>
    2424#include <rtems/score/schedulerimpl.h>
    2525
  • cpukit/score/src/threadstackallocate.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/system.h>
    23 #include <rtems/score/apiext.h>
    24 #include <rtems/score/context.h>
    25 #include <rtems/score/interr.h>
    26 #include <rtems/score/isr.h>
    27 #include <rtems/score/object.h>
    28 #include <rtems/score/priority.h>
     22#include <rtems/score/threadimpl.h>
    2923#include <rtems/score/stackimpl.h>
    30 #include <rtems/score/states.h>
    31 #include <rtems/score/thread.h>
    32 #include <rtems/score/threadq.h>
    33 #include <rtems/score/wkspace.h>
    3424#include <rtems/config.h>
    3525
  • cpukit/score/src/threadstackfree.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
    29 #include <rtems/score/thread.h>
    30 #include <rtems/score/threadq.h>
    31 #include <rtems/score/wkspace.h>
     21#include <rtems/score/threadimpl.h>
    3222#include <rtems/config.h>
    3323
  • cpukit/score/src/threadstart.c

    rf0bfd7d8 r5618c37a  
    2020#endif
    2121
    22 #include <rtems/score/thread.h>
    23 #include <rtems/score/isr.h>
     22#include <rtems/score/threadimpl.h>
     23#include <rtems/score/isrlevel.h>
    2424#include <rtems/score/schedulerimpl.h>
    2525#include <rtems/score/userextimpl.h>
  • cpukit/score/src/threadstartmultitasking.c

    rf0bfd7d8 r5618c37a  
    1919#endif
    2020
    21 #include <rtems/system.h>
    22 #include <rtems/score/apiext.h>
    23 #include <rtems/score/context.h>
    24 #include <rtems/score/interr.h>
    25 #include <rtems/score/isr.h>
    26 #include <rtems/score/object.h>
    27 #include <rtems/score/priority.h>
    28 #include <rtems/score/states.h>
     21#include <rtems/score/threadimpl.h>
    2922#include <rtems/score/sysstate.h>
    30 #include <rtems/score/thread.h>
    31 #include <rtems/score/threadq.h>
    32 #include <rtems/score/wkspace.h>
    3323
    3424void _Thread_Start_multitasking( void )
  • testsuites/sptests/spsimplesched02/init.c

    rf0bfd7d8 r5618c37a  
    1313
    1414#include <tmacros.h>
     15
     16#include <rtems/score/threadimpl.h>
    1517
    1618/* forward declarations to avoid warnings */
  • testsuites/support/include/tmacros.h

    rf0bfd7d8 r5618c37a  
    2323#include <string.h>
    2424#include <rtems/error.h>
    25 #include <rtems/score/thread.h> /*  _Thread_Dispatch_disable_level */
    26 #include <rtems/score/thread.inl> /*  _Thread_Dispatch_disable_level */
     25#include <rtems/score/threaddispatch.h>
    2726
    2827#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.