[rtems commit] h8sim/include/bsp.h: Remove rtems_bsp_delay()

Joel Sherrill joel at rtems.org
Fri Mar 21 13:47:40 UTC 2014


Module:    rtems
Branch:    master
Commit:    43af31de330b98b00780a307c29e71db6107e3e9
Changeset: http://git.rtems.org/rtems/commit/?id=43af31de330b98b00780a307c29e71db6107e3e9

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Mon Mar 17 13:25:47 2014 -0500

h8sim/include/bsp.h: Remove rtems_bsp_delay()

---

 c/src/lib/libbsp/h8300/h8sim/include/bsp.h |   16 ----------------
 1 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/c/src/lib/libbsp/h8300/h8sim/include/bsp.h b/c/src/lib/libbsp/h8300/h8sim/include/bsp.h
index d00eb99..61f0d2e 100644
--- a/c/src/lib/libbsp/h8300/h8sim/include/bsp.h
+++ b/c/src/lib/libbsp/h8300/h8sim/include/bsp.h
@@ -43,22 +43,6 @@ extern "C" {
 Thread clock_driver_sim_idle_body(uintptr_t);
 #define BSP_IDLE_TASK_BODY clock_driver_sim_idle_body
 
-/*
- *  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




More information about the vc mailing list