[ECOS] REG macros in hal_xscale.h
Moseley, Drew
drew.moseley@intel.com
Wed Sep 29 05:52:00 GMT 2004
Are the REG8/REG16/REG32 macros in hal_xscale.h misdefined for assembler
code? I attempted to use these in assembler code w/ a base register and
obvoously the code failed.
ie:
Index: packages/hal/arm/xscale/cores/current/include/hal_xscale.h
===================================================================
RCS file:
/cvs/ecos/ecos/packages/hal/arm/xscale/cores/current/include/hal_xscale.
h,v
retrieving revision 1.3
diff -u -r1.3 hal_xscale.h
--- packages/hal/arm/xscale/cores/current/include/hal_xscale.h 2 Sep
2004 20:17:43 -0000 1.3
+++ packages/hal/arm/xscale/cores/current/include/hal_xscale.h 28 Sep
2004 22:18:47 -0000
@@ -133,9 +133,9 @@
#ifdef __ASSEMBLER__
-#define REG8(a,b) (b)
-#define REG16(a,b) (b)
-#define REG32(a,b) (b)
+#define REG8(a,b) (a+b)
+#define REG16(a,b) (a+b)
+#define REG32(a,b) (a+b)
#else /* __ASSEMBLER__ */
Drew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss
mailing list