summaryrefslogtreecommitdiffstats
path: root/cpukit
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
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 'cpukit')
-rw-r--r--cpukit/score/cpu/powerpc/ChangeLog6
-rw-r--r--cpukit/score/cpu/powerpc/rtems/score/cpu.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/cpukit/score/cpu/powerpc/ChangeLog b/cpukit/score/cpu/powerpc/ChangeLog
index a6d46f8ae0..b823bf6c1c 100644
--- a/cpukit/score/cpu/powerpc/ChangeLog
+++ b/cpukit/score/cpu/powerpc/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h: Moved most of
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) )