summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/sh
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-28 16:01:41 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1999-10-28 16:01:41 +0000
commit7046cddb1b07083d23f9f62592790f2f9174a470 (patch)
treebf25abe9bd3a53d2765983f534bbfb53e2741a79 /cpukit/score/cpu/sh
parente90c5a1e768b30909d6346acb49b16af6f10c387 (diff)
downloadrtems-7046cddb1b07083d23f9f62592790f2f9174a470.tar.bz2
Patch rtems-rc-19991011-3.diff from Ralf Corsepius.
Diffstat (limited to 'cpukit/score/cpu/sh')
-rw-r--r--cpukit/score/cpu/sh/rtems/score/sh.h25
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 );