This is the mail archive of the
ecos-patches@sourceware.org
mailing list for the eCos project.
Fix asserts in mpc5xx var_intr.h
- From: "Fritiofson, Andreas" <andreas dot fritiofson at newmad dot se>
- To: <ecos-patches at sourceware dot org>
- Date: Mon, 13 Nov 2006 15:32:43 +0100
- Subject: Fix asserts in mpc5xx var_intr.h
Hello!
This patch fixes a couple of asserts written so they triggered when they should not, and the other way around. Issue posted on ecos-discuss.
-
Andreas Fritiofson
Newmad Technologies AB
### Eclipse Workspace Patch 1.0
#P ecos
Index: packages/hal/powerpc/mpc5xx/current/include/var_intr.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc5xx/current/include/var_intr.h,v
retrieving revision 1.4
diff -u -r1.4 var_intr.h
--- packages/hal/powerpc/mpc5xx/current/include/var_intr.h 1 Dec 2003 12:11:46 -0000 1.4
+++ packages/hal/powerpc/mpc5xx/current/include/var_intr.h 13 Nov 2006 14:20:30 -0000
@@ -296,7 +296,7 @@
#define CYGNUM_HAL_ISR_MAX CYGNUM_HAL_INTERRUPT_IMB3_MIOS_MDASM31
#define CYGARC_SIU_PRIORITY_HIGH 7 // Maximum interrupt priority on SIU
-#define CYGARC_SIU_PRIORITY_LOW 0 // Minimum interrupt prioeirt on SIU
+#define CYGARC_SIU_PRIORITY_LOW 0 // Minimum interrupt priority on SIU
#define CYGARC_IMB3_PRIORITY_HIGH 31 // Maximum interrupt priority on IMB3
#define CYGARC_IMB3_PRIORITY_LOW 0 // Minimum interrupt priority on IMB3
@@ -2335,13 +2335,13 @@
if(vector < CYGNUM_HAL_INTERRUPT_IMB3_QUADCA_CI1)
{
// Note: highest priority has the lowest numerical value.
- CYG_ASSERT( level >= CYGARC_SIU_PRIORITY_HIGH, "Invalid priority");
- CYG_ASSERT( level <= CYGARC_SIU_PRIORITY_LOW, "Invalid priority");
+ CYG_ASSERT( level >= CYGARC_SIU_PRIORITY_LOW, "Invalid priority");
+ CYG_ASSERT( level <= CYGARC_SIU_PRIORITY_HIGH, "Invalid priority");
}
else
{
- CYG_ASSERT( level >= CYGARC_IMB3_PRIORITY_HIGH, "Invalid priority");
- CYG_ASSERT( level <= CYGARC_IMB3_PRIORITY_LOW, "Invalid priority");
+ CYG_ASSERT( level >= CYGARC_IMB3_PRIORITY_LOW, "Invalid priority");
+ CYG_ASSERT( level <= CYGARC_IMB3_PRIORITY_HIGH, "Invalid priority");
}
switch (vector) {
Index: packages/hal/powerpc/mpc5xx/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/hal/powerpc/mpc5xx/current/ChangeLog,v
retrieving revision 1.6
diff -u -r1.6 ChangeLog
--- packages/hal/powerpc/mpc5xx/current/ChangeLog 22 Apr 2004 15:26:49 -0000 1.6
+++ packages/hal/powerpc/mpc5xx/current/ChangeLog 13 Nov 2006 14:20:29 -0000
@@ -1,3 +1,7 @@
+2006-11-13 Andreas Fritiofson <andreas.fritiofson@newmad.se>
+
+ * include/var_intr.h: Fixed a set of incorrect asserts.
+
2004-04-22 Jani Monoses <jani@iv.ro>
* cdl/hal_powerpc_mpc5xx.cdl :