diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-01 07:11:12 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-06-27 08:58:16 +0200 |
commit | 7ee59313932398aa2781503d25154c56301b9b73 (patch) | |
tree | efaeaf7fa038f3de1b58676deb16d52744c0b373 /bsps/arm/gumstix/clock/clock.c | |
parent | Remove unused CPU_MODES_INTERRUPT_LEVEL (diff) | |
download | rtems-7ee59313932398aa2781503d25154c56301b9b73.tar.bz2 |
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.
Diffstat (limited to 'bsps/arm/gumstix/clock/clock.c')
-rw-r--r-- | bsps/arm/gumstix/clock/clock.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bsps/arm/gumstix/clock/clock.c b/bsps/arm/gumstix/clock/clock.c index 0c4e1f8758..c844f50a37 100644 --- a/bsps/arm/gumstix/clock/clock.c +++ b/bsps/arm/gumstix/clock/clock.c @@ -108,11 +108,6 @@ static void Clock_driver_support_initialize_hardware(void) XSCALE_OS_TIMER_MR0 = XSCALE_OS_TIMER_TCR + period_num; \ } while (0) -#define Clock_driver_support_shutdown_hardware() \ - do { \ - BSP_remove_rtems_irq_handler(&clock_isr_data); \ - } while (0) - #define CLOCK_DRIVER_USE_DUMMY_TIMECOUNTER #include "../../../shared/dev/clock/clockimpl.h" |