From 64fa6e69d0f9d94b37fa05f22a2266ff13f91817 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 17 Mar 2014 13:20:26 -0500 Subject: niagara/include/bsp.h: Remove rtems_bsp_delay() --- c/src/lib/libbsp/sparc64/niagara/include/bsp.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/c/src/lib/libbsp/sparc64/niagara/include/bsp.h b/c/src/lib/libbsp/sparc64/niagara/include/bsp.h index e5ea523290..0710705bd1 100644 --- a/c/src/lib/libbsp/sparc64/niagara/include/bsp.h +++ b/c/src/lib/libbsp/sparc64/niagara/include/bsp.h @@ -44,23 +44,6 @@ rtems_isr_entry set_vector( /* returns old vector */ int type /* RTEMS or RAW intr */ ); -/* - * Simple spin delay in microsecond units for device drivers. - * This is very dependent on the clock speed of the target. - */ - -#define rtems_bsp_delay( microseconds ) \ - { register uint32_t _delay=(microseconds); \ - register uint32_t _tmp = 0; /* initialized to avoid warning */ \ - __asm__ volatile( "0: \ - remo 3,31,%0 ; \ - cmpo 0,%0 ; \ - subo 1,%1,%1 ; \ - cmpobne.t 0,%1,0b " \ - : "=d" (_tmp), "=d" (_delay) \ - : "0" (_tmp), "1" (_delay) ); \ - } - #ifdef __cplusplus } #endif -- cgit v1.2.3