This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
PPC8xx - always reset CPM
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at sources dot redhat dot com>
- Date: 05 Mar 2003 10:22:02 -0700
- Subject: PPC8xx - always reset CPM
... to avoid breakage when using old monitors
Index: hal/powerpc/mpc8xx/current/ChangeLog
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/mpc8xx/current/ChangeLog,v
retrieving revision 1.25
diff -u -5 -p -b -r1.25 ChangeLog
--- hal/powerpc/mpc8xx/current/ChangeLog 5 Mar 2003 17:15:43 -0000 1.25
+++ hal/powerpc/mpc8xx/current/ChangeLog 5 Mar 2003 17:21:10 -0000
@@ -1,8 +1,8 @@
2003-03-05 Gary Thomas <gary at mlbassoc dot com>
- * src/var_misc.c (hal_variant_init): Reset CPM (ROM/monitor only).
+ * src/var_misc.c (hal_variant_init): Reset CPM - always.
2003-03-05 Jonathan Larmour <jifl at eCosCentric dot com>
* include/variant.inc: Don't let FP be set in MSR in common HAL.
Reported by Radu Cernea <rc at unusus dot com>
Index: hal/powerpc/mpc8xx/current/src/var_misc.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/hal/powerpc/mpc8xx/current/src/var_misc.c,v
retrieving revision 1.11
diff -u -5 -p -b -r1.11 var_misc.c
--- hal/powerpc/mpc8xx/current/src/var_misc.c 5 Mar 2003 17:15:43 -0000 1.11
+++ hal/powerpc/mpc8xx/current/src/var_misc.c 5 Mar 2003 17:20:38 -0000
@@ -70,14 +70,16 @@ hal_variant_init(void)
cyg_uint32 ictrl;
CYGARC_MFSPR (ICTRL, ictrl);
ictrl |= ICTRL_NOSERSHOW;
CYGARC_MTSPR (ICTRL, ictrl);
}
-#ifndef CYGSEM_HAL_USE_ROM_MONITOR
+
+ // Note: it would be nice to only do this in the ROM/monitor. However,
+ // "new" programs which rely on that happening would break if the monitor
+ // environment does not handle this properly.
// Reset CPM
_mpc8xx_reset_cpm();
-#endif
}
//--------------------------------------------------------------------------
// Variant specific idle thread action.
bool
--
------------------------------------------------------------
Gary Thomas |
MLB Associates | Consulting for the
+1 (970) 229-1963 | Embedded world
http://www.mlbassoc.com/ |
email: <gary at mlbassoc dot com> |
gpg: http://www.chez-thomas.org/gary/gpg_key.asc
------------------------------------------------------------