From 8dc42d3e8bca475037f34fffc06b2519c542dda1 Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Mon, 3 Dec 2007 23:20:30 +0000 Subject: 2007-12-03 Till Straumann * rtems/score/cpu.h: Added comment that GDB patch sim/2376 is needed for reading the time-base with the new (more portable) method. --- cpukit/score/cpu/powerpc/ChangeLog | 6 ++++++ cpukit/score/cpu/powerpc/rtems/score/cpu.h | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'cpukit') 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 + + * 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 * 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) ) -- cgit v1.2.3