Changeset 7ee59313 in rtems for bsps/arm/tms570


Ignore:
Timestamp:
Jun 1, 2018, 5:11:12 AM (21 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
196ce18
Parents:
718a84af
git-author:
Sebastian Huber <sebastian.huber@…> (06/01/18 05:11:12)
git-committer:
Sebastian Huber <sebastian.huber@…> (06/27/18 06:58:16)
Message:

Remove Clock_driver_support_shutdown_hardware()

The aim of this clock driver hook was to stop clock tick interrupts at
some late point in the exit() procedure.

The use of atexit() pulls in malloc() which pulls in errno. It is
incompatible with the intention of the
CONFIGURE_DISABLE_NEWLIB_REENTRANCY configuration option.

The exit() function must be called from thread context, so accompanied
clock tick interrupts should cause no harm. On the contrary, someone
may assume a normal operating system operation, e.g. working timeouts.

Remove the Clock_driver_support_shutdown_hardware() clock driver hook.

Close #3436.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsps/arm/tms570/clock/clock.c

    r718a84af r7ee59313  
    160160}
    161161
    162 /**
    163  * @brief disables RTI interrupt
    164  *
    165  * Called when closing clock driver
    166  *
    167  * @retval Void
    168  */
    169 static void tms570_clock_driver_support_shutdown_hardware( void )
    170 {
    171   /* turn off the timer interrupts */
    172   TMS570_RTI.CLEARINTENA = TMS570_RTI_CLEARINTENA_CLEAROVL0INT |
    173                            TMS570_RTI_CLEARINTENA_CLEARINT0; 
    174 }
    175 
    176162#define Clock_driver_support_initialize_hardware \
    177163                        tms570_clock_driver_support_initialize_hardware
     
    180166#define Clock_driver_support_initialize_hardware \
    181167                        tms570_clock_driver_support_initialize_hardware
    182 #define Clock_driver_support_shutdown_hardware \
    183                         tms570_clock_driver_support_shutdown_hardware
    184168
    185169#define Clock_driver_support_install_isr(Clock_isr) \
Note: See TracChangeset for help on using the changeset viewer.