diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-28 16:01:41 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-10-28 16:01:41 +0000 |
commit | 7046cddb1b07083d23f9f62592790f2f9174a470 (patch) | |
tree | bf25abe9bd3a53d2765983f534bbfb53e2741a79 /cpukit/score/cpu/sh/rtems/score/sh.h | |
parent | changed version to 19991028 (diff) | |
download | rtems-7046cddb1b07083d23f9f62592790f2f9174a470.tar.bz2 |
Patch rtems-rc-19991011-3.diff from Ralf Corsepius.
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/cpu/sh/rtems/score/sh.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/cpukit/score/cpu/sh/rtems/score/sh.h b/cpukit/score/cpu/sh/rtems/score/sh.h index 03d9077d3e..96e10bfb1b 100644 --- a/cpukit/score/cpu/sh/rtems/score/sh.h +++ b/cpukit/score/cpu/sh/rtems/score/sh.h @@ -148,31 +148,6 @@ static inline unsigned int sh_swap_u16( #define CPU_swap_u32( value ) sh_swap_u32( value ) #define CPU_swap_u16( value ) sh_swap_u16( value ) -/* - * Simple spin delay in microsecond units for device drivers. - * This is very dependent on the clock speed of the target. - * - * Since we don't have a real time clock, this is a very rough - * approximation, assuming that each cycle of the delay loop takes - * approx. 4 machine cycles. - * - * e.g.: MHZ = 20 => 5e-8 secs per instruction - * => 4 * 5e-8 secs per delay loop - */ - -#define sh_delay( microseconds ) \ -{ register unsigned int _delay = (microseconds) * (MHZ / 4 ); \ - asm volatile ( \ -"0: add #-1,%0\n \ - nop\n \ - cmp/pl %0\n \ - bt 0b\ - nop" \ - :: "r" (_delay) ); \ -} - -#define CPU_delay( microseconds ) sh_delay( microseconds ) - extern unsigned int sh_set_irq_priority( unsigned int irq, unsigned int prio ); |