From 7046cddb1b07083d23f9f62592790f2f9174a470 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 28 Oct 1999 16:01:41 +0000 Subject: Patch rtems-rc-19991011-3.diff from Ralf Corsepius. --- cpukit/score/cpu/sh/rtems/score/sh.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'cpukit/score/cpu/sh') 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 ); -- cgit v1.2.3