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.

File:
1 edited

Legend:

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

    r5072b07 r3a4ae6c  
    6161rtems_isr_entry  Old_ticker;
    6262
    63 /*
    64  *  Reinstall_clock
    65  *
    66  *  Install a clock tick handler without reprogramming the chip.  This
    67  *  is used by the polling shared memory device driver.
    68  */
    69 
    70 void ReInstall_clock(
    71   rtems_isr_entry clock_isr
    72 )
    73 {
    74   rtems_unsigned32 isrlevel = 0;
    75 
    76   /*
    77    *  Disable interrupts and install the clock ISR vector using the
    78    *  BSP dependent set_vector routine.  In the below example, the clock
    79    *  ISR is on vector 4 and is an RTEMS interrupt.
    80    */
    81 
    82   rtems_interrupt_disable( isrlevel );
    83    (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
    84   rtems_interrupt_enable( isrlevel );
     63void Clock_exit( void );
     64
     65
     66/*
     67 *  Isr Handler
     68 */
     69
     70rtems_isr Clock_isr(
     71  rtems_vector_number vector
     72)
     73{
     74/*
     75 * bump the number of clock driver ticks since initialization
     76 *
     77 * determine if it is time to announce the passing of tick as configured
     78 * to RTEMS through the rtems_clock_tick directive
     79 *
     80 * perform any timer dependent tasks
     81 */
    8582}
    8683
     
    125122
    126123/*
     124 *  Reinstall_clock
     125 *
     126 *  Install a clock tick handler without reprogramming the chip.  This
     127 *  is used by the polling shared memory device driver.
     128 */
     129
     130void ReInstall_clock(
     131  rtems_isr_entry clock_isr
     132)
     133{
     134  rtems_unsigned32 isrlevel = 0;
     135
     136  /*
     137   *  Disable interrupts and install the clock ISR vector using the
     138   *  BSP dependent set_vector routine.  In the below example, the clock
     139   *  ISR is on vector 4 and is an RTEMS interrupt.
     140   */
     141
     142  rtems_interrupt_disable( isrlevel );
     143   (void) set_vector( clock_isr, CLOCK_VECTOR, 1 );
     144  rtems_interrupt_enable( isrlevel );
     145}
     146
     147/*
    127148 *  Clean up before the application exits
    128149 */
     
    150171)
    151172{
    152   Install_clock((rtems_isr_entry) Clock_isr);
    153 
     173  Install_clock( Clock_isr );
     174 
    154175  /*
    155176   * make major/minor avail to others such as shared memory driver
    156177   */
     178 
    157179  rtems_clock_major = major;
    158     rtems_clock_minor = minor;
    159 
     180  rtems_clock_minor = minor;
     181 
    160182  return RTEMS_SUCCESSFUL;
    161183}
Note: See TracChangeset for help on using the changeset viewer.