summaryrefslogtreecommitdiffstats
path: root/cpukit/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
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 '')
-rw-r--r--cpukit/score/cpu/powerpc/ChangeLog5
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
2 files changed, 8 insertions, 1 deletions
diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog
index 1a81d3b819..85a711a9e6 100644
--- a/cpukit/score/cpu/powerpc/ChangeLog
+++ b/cpukit/score/cpu/powerpc/ChangeLog
@@ -1,3 +1,8 @@
+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.
+
2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Do not define boolean, single_precision,
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 \