This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
REG macros in hal_xscale.h
- From: "Moseley, Drew" <drew dot moseley at intel dot com>
- To: <ecos-discuss at sources dot redhat dot com>
- Date: Tue, 28 Sep 2004 15:20:49 -0700
- Subject: [ECOS] REG macros in hal_xscale.h
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