[ECOS] JFFS2 questions with eCos

Andrew Lunn andrew@lunn.ch
Wed Sep 21 19:18:00 GMT 2005


> Sorry, I can not find the definition of int8_t, int16_t, int32_t.
> #define int8_t cyg_int8
> #define int16_t cyg_int16
> #define int32_t cyg_int32

Upps, my error. These are signed, where as linux/types.h provides
unsigned. 

So why do i not get errors when i compile this last time?

Anyway, i've committed your changes.

        Andrew
                
-------------- next part --------------
? include/asm/current.h
Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/linux/current/ChangeLog,v
retrieving revision 1.8
diff -u -r1.8 ChangeLog
--- ChangeLog	27 Mar 2005 18:28:51 -0000	1.8
+++ ChangeLog	21 Sep 2005 19:15:56 -0000
@@ -1,3 +1,7 @@
+2005-09-21  Steven_cheng <05071@alphanetworks.com>
+
+	* include/linux/types.h: Added unsigned types.
+
 2005-03-27  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* include/linux/kernel.h (PTR_ERR): Should be an unsigned long,
Index: include/linux/types.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/compat/linux/current/include/linux/types.h,v
retrieving revision 1.2
diff -u -r1.2 types.h
--- include/linux/types.h	12 Aug 2004 21:32:40 -0000	1.2
+++ include/linux/types.h	21 Sep 2005 19:15:56 -0000
@@ -6,8 +6,14 @@
 #define uint8_t cyg_uint8
 #define uint16_t cyg_uint16
 #define uint32_t cyg_uint32
+
+#define int8_t cyg_int8
+#define int16_t cyg_int16
+#define int32_t cyg_int32
+
 #define loff_t off_t
 
+
 #define kvec iovec
 #endif /* __LINUX_TYPES_H__ */
 


More information about the Ecos-patches mailing list