summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-29 14:25:55 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2001-10-29 14:25:55 +0000
commitd8459d059ac69597b28bcdcc45607df5b827207d (patch)
treea0b2fea287c9e90335b50747e30beed09347af83 /c
parent2001-10-29 Joel Sherrill <joel@OARcorp.com> (diff)
downloadrtems-d8459d059ac69597b28bcdcc45607df5b827207d.tar.bz2
2001-10-29 Joel Sherrill <joel@OARcorp.com>
* mpc8xx/timer/timer.c: Added hack for two macros that are not defined with the new exception processing model: rtems_cpu_configuration_get_timer_least_valid() rtems_cpu_configuration_get_timer_average_overhead() This is captured as PR57.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libcpu/powerpc/ChangeLog8
-rw-r--r--c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c10
2 files changed, 18 insertions, 0 deletions
diff --git a/c/src/lib/libcpu/powerpc/ChangeLog b/c/src/lib/libcpu/powerpc/ChangeLog
index 4a2b8bec0a..0033f1fb17 100644
--- a/c/src/lib/libcpu/powerpc/ChangeLog
+++ b/c/src/lib/libcpu/powerpc/ChangeLog
@@ -1,3 +1,11 @@
+2001-10-29 Joel Sherrill <joel@OARcorp.com>
+
+ * mpc8xx/timer/timer.c: Added hack for two macros that are not defined
+ with the new exception processing model:
+ rtems_cpu_configuration_get_timer_least_valid()
+ rtems_cpu_configuration_get_timer_average_overhead()
+ This is captured as PR57.
+
2001-10-24 Joel Sherrill <joel@OARcorp.com>
* mpc8260/clock/.cvsignore, mpc8260/console-generic/.cvsignore,
diff --git a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
index 2e1c332c73..b75503f381 100644
--- a/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
+++ b/c/src/lib/libcpu/powerpc/mpc8xx/timer/timer.c
@@ -69,6 +69,16 @@ void Timer_initialize(void)
Timer_starting = get_itimer();
}
+#ifndef rtems_cpu_configuration_get_timer_least_valid
+#define rtems_cpu_configuration_get_timer_least_valid() 0
+#warning "rtems_cpu_configuration_get_timer_least_valid HACK tripped!"
+#endif
+
+#ifndef rtems_cpu_configuration_get_timer_average_overhead
+#define rtems_cpu_configuration_get_timer_average_overhead() 0
+#warning "rtems_cpu_configuration_get_timer_average_overhead HACK tripped!"
+#endif
+
int Read_timer(void)
{
rtems_unsigned32 clicks;