This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gprof - update mpc8xx timer support


Adjust the mpc8xx profiling timer code to match the updated generic
gprof package.

Bart

Index: hal/powerpc/mpc8xx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc8xx/current/ChangeLog,v
retrieving revision 1.36
diff -u -r1.36 ChangeLog
--- hal/powerpc/mpc8xx/current/ChangeLog	16 Sep 2004 23:24:02 -0000	1.36
+++ hal/powerpc/mpc8xx/current/ChangeLog	21 Mar 2005 14:13:39 -0000
@@ -3,6 +3,12 @@
 	* src/var_misc.c (hal_variant_init): Remove [possibly incorrect]
 	parallel port initializations - leave them to the platform.
 
+2004-04-27  Bart Veer  <bartv@ecoscentric.com>
+
+	* src/var_misc.c (hal_enable_profile_timer):
+	Update this function to return the actual resolution, as 
+	required by the updated gprof package
+
 2004-04-22  Jani Monoses <jani@iv.ro>
 
 	 * cdl/hal_powerpc_mpc8xx.cdl :
Index: hal/powerpc/mpc8xx/current/src/var_misc.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc8xx/current/src/var_misc.c,v
retrieving revision 1.17
diff -u -r1.17 var_misc.c
--- hal/powerpc/mpc8xx/current/src/var_misc.c	16 Sep 2004 23:24:03 -0000	1.17
+++ hal/powerpc/mpc8xx/current/src/var_misc.c	21 Mar 2005 14:13:50 -0000
@@ -238,7 +238,7 @@
     return Cyg_InterruptHANDLED;
 }
 
-void
+int
 hal_enable_profile_timer(int resolution)
 {
     // Run periodic timer interrupt for profile 
@@ -265,6 +265,8 @@
     HAL_READ_UINT16 (CYGARC_REG_IMM_PISCR, piscr);
     piscr |= CYGARC_REG_IMM_PISCR_PTE;
     HAL_WRITE_UINT16 (CYGARC_REG_IMM_PISCR, piscr);
+
+    return resolution;
 }
 #endif
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]