summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/powerpc/rtems/score/cpu.h
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2007-12-03 23:20:30 +0000
committerTill Straumann <strauman@slac.stanford.edu>2007-12-03 23:20:30 +0000
commit8dc42d3e8bca475037f34fffc06b2519c542dda1 (patch)
tree318498c70c66ce2ec2050bc3b8b3c21c876906f9 /cpukit/score/cpu/powerpc/rtems/score/cpu.h
parent2007-12-03 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-8dc42d3e8bca475037f34fffc06b2519c542dda1.tar.bz2
2007-12-03 Till Straumann <strauman@slac.stanford.edu>
* rtems/score/cpu.h: Added comment that GDB patch sim/2376 is needed for reading the time-base with the new (more portable) method.
Diffstat (limited to '')
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/rtems/score/cpu.h b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
index e793667609..ce74a9d1ff 100644
--- a/cpukit/score/cpu/powerpc/rtems/score/cpu.h
+++ b/cpukit/score/cpu/powerpc/rtems/score/cpu.h
@@ -406,6 +406,10 @@ static inline uint32_t CPU_swap_u32(
* we run in supervisory mode so that should work on
* all CPUs. In user mode we'd have a problem...
* 2007/11/30, T.S.
+ *
+ * OTOH, PSIM currently lacks support for reading
+ * SPRs 268/269. You need GDB patch sim/2376 to avoid
+ * a crash...
*/
#define CPU_Get_timebase_low( _value ) \
asm volatile( "mftb %0" : "=r" (_value) )