diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-05 21:46:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-04-05 21:46:28 +0000 |
commit | 75ef2d52da7c698e319ce06c1ff277e58f3ef915 (patch) | |
tree | 639ed263f2481ce0c29469f4d310023833daa419 /c/src | |
parent | 2007-04-05 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-75ef2d52da7c698e319ce06c1ff277e58f3ef915.tar.bz2 |
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* clock/clock.c: Removed. File is unused in current source.
Diffstat (limited to 'c/src')
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/ChangeLog | 4 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/psim/clock/clock.c | 51 |
2 files changed, 4 insertions, 51 deletions
diff --git a/c/src/lib/libbsp/powerpc/psim/ChangeLog b/c/src/lib/libbsp/powerpc/psim/ChangeLog index 5b5d2bc5bb..0b61d4d33b 100644 --- a/c/src/lib/libbsp/powerpc/psim/ChangeLog +++ b/c/src/lib/libbsp/powerpc/psim/ChangeLog @@ -1,3 +1,7 @@ +2007-04-05 Joel Sherrill <joel@OARcorp.com> + + * clock/clock.c: Removed. File is unused in current source. + 2007-03-28 Joel Sherrill <joel@OARcorp.com> * Makefile.am: Modify to avoid pulling in too much into minimum diff --git a/c/src/lib/libbsp/powerpc/psim/clock/clock.c b/c/src/lib/libbsp/powerpc/psim/clock/clock.c deleted file mode 100644 index 8fd08cb2c0..0000000000 --- a/c/src/lib/libbsp/powerpc/psim/clock/clock.c +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Instantiate the clock driver shell for psim based - * on the decrementer register. - * - * $Id$ - */ - -#include <rtems.h> - -/* - * If defined, speed up the clock ticks while the idle task is running so - * time spent in the idle task is minimized. This significantly reduces - * the wall time required to execute the RTEMS test suites. - */ - -/* #define CLOCK_DRIVER_USE_FAST_IDLE */ - -#define CLOCK_VECTOR PPC_IRQ_DECREMENTER - -/* On psim, each click of the decrementer register corresponds - * to 1 instruction. By setting this to 100, we are indicating - * that we are assuming it can execute 100 instructions per - * microsecond. This corresponds to sustaining 1 instruction - * per cycle at 100 Mhz. Whether this is a good guess or not - * is anyone's guess. - */ - -extern int PSIM_INSTRUCTIONS_PER_MICROSECOND; - -unsigned int PPC_DECREMENTER_CLICKS; - -#define Clock_driver_support_install_isr( _new, _old ) \ - do { \ - _old = (rtems_isr_entry) set_vector( _new, CLOCK_VECTOR, 1 ); \ - PPC_DECREMENTER_CLICKS = (unsigned int)&PSIM_INSTRUCTIONS_PER_MICROSECOND; \ - PPC_DECREMENTER_CLICKS *= rtems_configuration_get_microseconds_per_tick(); \ - /* PPC_DECREMENTER_CLICKS = 5000; */ \ - } while(0) - -#define Clock_driver_support_initialize_hardware() \ - do { \ - unsigned int _clicks = PPC_DECREMENTER_CLICKS; \ - PPC_Set_decrementer( _clicks ); \ - } while (0) - -#define Clock_driver_support_at_tick() \ - Clock_driver_support_initialize_hardware() - -#define Clock_driver_support_shutdown_hardware() - -#include "../../../shared/clockdrv_shell.c" |