Changeset 7ee59313 in rtems for bsps/lm32


Ignore:
Timestamp:
Jun 1, 2018, 5:11:12 AM (18 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.

Location:
bsps/lm32/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • bsps/lm32/shared/clock/ckinit.c

    r718a84af r7ee59313  
    6666}
    6767
    68 #define Clock_driver_support_shutdown_hardware() \
    69   do { \
    70     /* Disable clock interrupts and stop */ \
    71     lm32_interrupt_unmask(CLOCK_IRQMASK); \
    72     clockwrite(LM32_CLOCK_CR, LM32_CLOCK_CR_STOP); \
    73   } while (0)
    74 
    7568#define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER
    7669
  • bsps/lm32/shared/milkymist_clock/ckinit.c

    r718a84af r7ee59313  
    4242}
    4343
    44 #define Clock_driver_support_shutdown_hardware() \
    45   do { \
    46     bsp_interrupt_vector_disable(MM_IRQ_TIMER0); \
    47     MM_WRITE(MM_TIMER0_CONTROL, 0); \
    48   } while (0)
    49 
    5044#define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER
    5145
Note: See TracChangeset for help on using the changeset viewer.