Changeset 7f6a24ab in rtems for c/src/lib/libbsp/no_cpu/no_bsp


Ignore:
Timestamp:
Aug 28, 1995, 3:30:29 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
5072b07
Parents:
5250ff39
Message:

Added unused priority ceiling parameter to rtems_semaphore_create.

Rearranged code to created thread handler routines to initialize,
start, restart, and "close/delete" a thread.

Made internal threads their own object class. This now uses the
thread support routines for starting and initializing a thread.

Insured deleted tasks are freed to the Inactive pool associated with the
correct Information block.

Added an RTEMS API specific data area to the thread control block.

Beginnings of removing the word "rtems" from the core.

Location:
c/src/lib/libbsp/no_cpu/no_bsp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/no_cpu/no_bsp/clock/ckinit.c

    r5250ff39 r7f6a24ab  
    1717
    1818#include <rtems.h>
     19#include <rtems/libio.h>
    1920#include <bsp.h>
    20 #include <clockdrv.h>
     21
     22void Clock_exit( void );
     23rtems_isr Clock_isr( rtems_vector_number vector );
     24
    2125
    2226/*
     
    3135 *  number of clock ticks since the driver was initialized.
    3236 */
     37
    3338volatile rtems_unsigned32 Clock_driver_ticks;
    3439
     
    4449
    4550/*
     51 * These are set by clock driver during its init
     52 */
     53 
     54rtems_device_major_number rtems_clock_major = ~0;
     55rtems_device_minor_number rtems_clock_minor;
     56
     57/*
    4658 *  The previous ISR on this clock tick interrupt vector.
    4759 */
    4860
    4961rtems_isr_entry  Old_ticker;
    50 
    51 /*
    52  *  Clock_initialize
    53  *
    54  *  Device driver entry point for clock tick driver initialization.
    55  */
    56 
    57 rtems_device_driver Clock_initialize(
    58   rtems_device_major_number major,
    59   rtems_device_minor_number minor,
    60   void *pargp,
    61   rtems_id tid,
    62   rtems_unsigned32 *rval
    63 )
    64 {
    65   Install_clock( Clock_isr );
    66 }
    6762
    6863/*
     
    142137  }
    143138}
     139
     140/*
     141 *  Clock_initialize
     142 *
     143 *  Device driver entry point for clock tick driver initialization.
     144 */
     145
     146rtems_device_driver Clock_initialize(
     147  rtems_device_major_number major,
     148  rtems_device_minor_number minor,
     149  void *pargp
     150)
     151{
     152  Install_clock((rtems_isr_entry) Clock_isr);
     153
     154  /*
     155   * make major/minor avail to others such as shared memory driver
     156   */
     157  rtems_clock_major = major;
     158    rtems_clock_minor = minor;
     159
     160  return RTEMS_SUCCESSFUL;
     161}
     162
     163rtems_device_driver Clock_control(
     164  rtems_device_major_number major,
     165  rtems_device_minor_number minor,
     166  void *pargp
     167)
     168{
     169    rtems_libio_ioctl_args_t *args = pargp;
     170 
     171    if (args == 0)
     172        goto done;
     173 
     174    /*
     175     * This is hokey, but until we get a defined interface
     176     * to do this, it will just be this simple...
     177     */
     178 
     179    if (args->command == rtems_build_name('I', 'S', 'R', ' '))
     180    {
     181        Clock_isr(CLOCK_VECTOR);
     182    }
     183    else if (args->command == rtems_build_name('N', 'E', 'W', ' '))
     184    {
     185        ReInstall_clock(args->buffer);
     186    }
     187 
     188done:
     189    return RTEMS_SUCCESSFUL;
     190}
  • c/src/lib/libbsp/no_cpu/no_bsp/include/bsp.h

    r5250ff39 r7f6a24ab  
    2424
    2525#include <rtems.h>
     26#include <clockdrv.h>
    2627
    2728/*
     
    6869extern rtems_configuration_table BSP_Configuration;
    6970
     71/*
     72 * Console driver init
     73 */
     74 
     75rtems_device_driver console_initialize(
     76  rtems_device_major_number, rtems_device_minor_number minor, void *);
     77 
     78#define CONSOLE_DRIVER_TABLE_ENTRY \
     79  { console_initialize, NULL, NULL, NULL, NULL, NULL }
     80 
     81/*
     82 * NOTE: Use the standard Clock driver entry
     83 */
     84
    7085/* functions */
    7186
Note: See TracChangeset for help on using the changeset viewer.