Changeset 3a4ae6c in rtems for cpukit/rtems/inline


Ignore:
Timestamp:
Sep 11, 1995, 7:35:39 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ced11f99
Parents:
5072b07
Message:

The word "RTEMS" almost completely removed from the core.

Configuration Table Template file added and all tests
modified to use this. All gvar.h and conftbl.h files
removed from test directories.

Configuration parameter maximum_devices added.

Core semaphore and mutex handlers added and RTEMS API Semaphore
Manager updated to reflect this.

Initialization sequence changed to invoke API specific initialization
routines. Initialization tasks table now owned by RTEMS Tasks Manager.

Added user extension for post-switch.

Utilized user extensions to implement API specific functionality
like signal dispatching.

Added extensions to the System Initialization Thread so that an
API can register a function to be invoked while the system
is being initialized. These are largely equivalent to the
pre-driver and post-driver hooks.

Added the Modules file oar-go32_p5, modified oar-go32, and modified
the file make/custom/go32.cfg to look at an environment varable which
determines what CPU model is being used.

All BSPs updated to reflect named devices and clock driver's IOCTL
used by the Shared Memory Driver. Also merged clock isr into
main file and removed ckisr.c where possible.

Updated spsize to reflect new and moved variables.

Makefiles for the executive source and include files updated to show
break down of files into Core, RTEMS API, and Neither.

Header and inline files installed into subdirectory based on whether
logically in the Core or a part of the RTEMS API.

Location:
cpukit/rtems/inline/rtems/rtems
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • cpukit/rtems/inline/rtems/rtems/asr.inl

    r5072b07 r3a4ae6c  
    1818#define __INLINE_ASR_inl
    1919
    20 #include <rtems/isr.h>
     20#include <rtems/core/isr.h>
    2121
    2222/*PAGE
     
    3030)
    3131{
     32  information->is_enabled      = TRUE;
    3233  information->handler         = NULL;
    3334  information->mode_set        = RTEMS_DEFAULT_MODES;
     
    4849{
    4950  rtems_signal_set _signals;
    50   ISR_Level              _level;
     51  ISR_Level        _level;
    5152
    5253  _ISR_Disable( _level );
  • cpukit/rtems/inline/rtems/rtems/attr.inl

    r5072b07 r3a4ae6c  
    109109}
    110110
     111/*PAGE
     112 *
     113 *  _Attributes_Is_priority_ceiling
     114 *
     115 */
     116 
     117STATIC INLINE boolean _Attributes_Is_priority_ceiling(
     118  rtems_attribute attribute_set
     119)
     120{
     121   return ( attribute_set & RTEMS_PRIORITY_CEILING );
     122}
     123
    111124#endif
    112125/* end of include file */
  • cpukit/rtems/inline/rtems/rtems/event.inl

    r5072b07 r3a4ae6c  
    2525{
    2626  _Event_Sync = FALSE;
     27
     28  /*
     29   *  Register the MP Process Packet routine.
     30   */
     31 
     32  _MPCI_Register_packet_processor( MP_PACKET_EVENT, _Event_MP_Process_packet );
    2733}
    2834
  • cpukit/rtems/inline/rtems/rtems/message.inl

    r5072b07 r3a4ae6c  
    1818#define __MESSAGE_QUEUE_inl
    1919
    20 #include <rtems/wkspace.h>
     20#include <rtems/core/wkspace.h>
    2121
    2222/*PAGE
  • cpukit/rtems/inline/rtems/rtems/modes.inl

    r5072b07 r3a4ae6c  
    5454)
    5555{
    56    return ( mode_set & RTEMS_ASR_MASK );
     56   return (mode_set & RTEMS_ASR_MASK) == RTEMS_NO_ASR;
    5757}
    5858
     
    6767)
    6868{
    69    return ( ( mode_set & RTEMS_PREEMPT_MASK ) == RTEMS_PREEMPT );
     69   return (mode_set & RTEMS_PREEMPT_MASK) == RTEMS_PREEMPT;
    7070}
    7171
     
    8080)
    8181{
    82   return ((mode_set & (RTEMS_TIMESLICE_MASK|RTEMS_PREEMPT_MASK)) ==
    83                   (RTEMS_TIMESLICE|RTEMS_PREEMPT) );
     82  return (mode_set & RTEMS_TIMESLICE_MASK) == RTEMS_TIMESLICE;
    8483}
    8584
  • cpukit/rtems/inline/rtems/rtems/status.inl

    r5072b07 r3a4ae6c  
    4545}
    4646
    47 /*
    48  *  _Status_Is_proxy_blocking
    49  *
    50  */
    51 
    52 STATIC INLINE boolean _Status_Is_proxy_blocking (
    53   rtems_status_code code
    54 )
    55 {
    56   return (code == RTEMS_PROXY_BLOCKING);
    57 }
    58 
    5947#endif
    6048/* end of include file */
  • cpukit/rtems/inline/rtems/rtems/tasks.inl

    r5072b07 r3a4ae6c  
    1717#ifndef __RTEMS_TASKS_inl
    1818#define __RTEMS_TASKS_inl
    19 
    20 #include <rtems/msgmp.h>
    21 #include <rtems/partmp.h>
    22 #include <rtems/regionmp.h>
    23 #include <rtems/semmp.h>
    2419
    2520/*PAGE
     
    5247/*PAGE
    5348 *
    54  *  _RTEMS_tasks_Cancel_wait
    55  *
    56  */
    57 
    58 STATIC INLINE void _RTEMS_tasks_Cancel_wait(
    59   Thread_Control *the_thread
    60 )
    61 {
    62   States_Control state;
    63   States_Control remote_state;
    64 
    65   state = the_thread->current_state;
    66 
    67 /* XXX do this with the object class */
    68   if ( _States_Is_waiting_on_thread_queue( state ) ) {
    69     if ( _States_Is_waiting_for_rpc_reply( state ) &&
    70           _States_Is_locally_blocked( state ) ) {
    71       remote_state = _States_Clear(
    72                        STATES_WAITING_FOR_RPC_REPLY | STATES_TRANSIENT,
    73                        state
    74                      );
    75 
    76       switch ( remote_state ) {
    77 
    78         case STATES_WAITING_FOR_BUFFER:
    79           _Partition_MP_Send_extract_proxy( the_thread );
    80           break;
    81         case STATES_WAITING_FOR_SEGMENT:
    82           _Region_MP_Send_extract_proxy( the_thread );
    83           break;
    84         case STATES_WAITING_FOR_SEMAPHORE:
    85           _Semaphore_MP_Send_extract_proxy( the_thread );
    86           break;
    87         case STATES_WAITING_FOR_MESSAGE:
    88           _Message_queue_MP_Send_extract_proxy( the_thread );
    89           break;
    90       }
    91     }
    92     _Thread_queue_Extract( the_thread->Wait.queue, the_thread );
    93   }
    94   else if ( _Watchdog_Is_active( &the_thread->Timer ) )
    95     (void) _Watchdog_Remove( &the_thread->Timer );
    96 }
    97 
    98 /*PAGE
    99  *
    100  *  _RTEMS_Tasks_Priority_to_Core
     49 *  _RTEMS_tasks_Priority_to_Core
    10150 */
    10251 
    103 STATIC INLINE Priority_Control _RTEMS_Tasks_Priority_to_Core(
     52STATIC INLINE Priority_Control _RTEMS_tasks_Priority_to_Core(
    10453  rtems_task_priority   priority
    10554)
     
    10857}
    10958
     59/*PAGE
     60 *
     61 *  _RTEMS_tasks_Priority_is_valid
     62 *
     63 */
     64 
     65STATIC INLINE boolean _RTEMS_tasks_Priority_is_valid (
     66  rtems_task_priority the_priority
     67)
     68{
     69  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&
     70            ( the_priority <= RTEMS_MAXIMUM_PRIORITY ) );
     71}
     72
    11073#endif
    11174/* end of include file */
Note: See TracChangeset for help on using the changeset viewer.