From 0dd1d44582dd2b39a791aa60f76358ff9bba8cd8 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 11 Jan 2000 17:34:20 +0000 Subject: Removed old hack of using Configuration Table entry ticks_per_timeslice being set to 0 to indicate that there should be no Clock Tick. This was used by the Timing Tests to avoid clock tick overhead perturbing execution times. Now the Timing Tests simply leave the Clock Tick Driver out of the Device Driver Table. --- c/src/lib/libbsp/i960/cvme961/clock/ckinit.c | 20 ++++++++------------ c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c | 19 ++++--------------- 2 files changed, 12 insertions(+), 27 deletions(-) (limited to 'c/src/lib/libbsp/i960') diff --git a/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c b/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c index 5850f5f04e..19d2df4077 100644 --- a/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c +++ b/c/src/lib/libbsp/i960/cvme961/clock/ckinit.c @@ -51,24 +51,20 @@ void Install_clock( Clock_driver_ticks = 0; Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000; - if ( BSP_Configuration.ticks_per_timeslice ) { - Old_ticker = set_vector( clock_isr, CLOCK_VECTOR, 1 ); - victimer = (volatile unsigned char *) 0xa00000c3; - *victimer = 0x12; - *victimer = 0x92; /* 1000 HZ */ - } + Old_ticker = set_vector( clock_isr, CLOCK_VECTOR, 1 ); + victimer = (volatile unsigned char *) 0xa00000c3; + *victimer = 0x12; + *victimer = 0x92; /* 1000 HZ */ } void Clock_exit() { unsigned char *victimer; - if ( BSP_Configuration.ticks_per_timeslice ) { - victimer = (unsigned char *) 0xa00000c3; - *victimer = 0x12; - i960_mask_intr( 5 ); - /* do not restore old vector */ - } + victimer = (unsigned char *) 0xa00000c3; + *victimer = 0x12; + i960_mask_intr( 5 ); + /* do not restore old vector */ } rtems_device_driver Clock_initialize( diff --git a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c index aebdb162b3..20b7ea3144 100644 --- a/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c +++ b/c/src/lib/libbsp/i960/rxgen960/clock/ckinit.c @@ -65,12 +65,6 @@ void Install_clock( Reload_Clock_isrs = BSP_Configuration.microseconds_per_tick / 1000; Clock_isrs = Reload_Clock_isrs; -/* Not for our case - if ( BSP_Configuration.ticks_per_timeslice ) { - *icon = 0x6000; - - Old_ticker = set_vector( (((unsigned int) clock_isr) | 0x2), CLOCK_VECTOR, 1 ); -*/ #define BUS_CLOCK_1 0 #define TMR_WRITE_CNTL 8 #define TMR_AUTO_RELOAD 4 @@ -78,9 +72,6 @@ void Install_clock( #define TMR_TERM_CNT_STAT 1 Old_ticker = set_vector( (((unsigned int) clock_isr) | 0x2), CLOCK_VECTOR, 1 ); -/* - *(unsigned int *)(CLOCK_VECTOR >>2) = (unsigned int )clockHandler; -*/ /* initialize the i960RP timer 0 here */ @@ -102,13 +93,11 @@ void Clock_exit() { volatile unsigned int *tmr0 = (unsigned int *) TMR0_ADDR; - if ( BSP_Configuration.ticks_per_timeslice ) { - /* shut down the timer */ - *tmr0 = *tmr0 & ~TMR_ENABLE; + /* shut down the timer */ + *tmr0 = *tmr0 & ~TMR_ENABLE; - i960_mask_intr( 12 ); - /* do not restore old vector */ - } + i960_mask_intr( 12 ); + /* do not restore old vector */ } rtems_device_driver Clock_initialize( -- cgit v1.2.3