summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-14 23:17:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-14 23:17:13 +0000
commit5c8d42b7b22ad921af0cb129a96797bb0d63a393 (patch)
treee11bea194044490ec4f4339f3b181a654f143438 /cpukit/score/cpu/powerpc/rtems/score
parent2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-5c8d42b7b22ad921af0cb129a96797bb0d63a393.tar.bz2
2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Move extern of bsp_clicks_per_usec so it is not nested inside braces.
Diffstat (limited to 'cpukit/score/cpu/powerpc/rtems/score')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index 659894da26..06f07d1434 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -424,10 +424,12 @@ static inline uint32_t CPU_swap_u32(
asm volatile( "mfspr %0,268" : "=r" (_value) )
#endif
+/* Must be provided for rtems_bsp_delay to work */
+extern uint32_t bsp_clicks_per_usec;
+
#define rtems_bsp_delay( _microseconds ) \
do { \
uint32_t start, ticks, now; \
- extern uint32_t bsp_clicks_per_usec; \
CPU_Get_timebase_low( start ) ; \
ticks = (_microseconds) * bsp_clicks_per_usec; \
do \