]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[XTENSA] Add typecast macro for constants
authorChris Zankel <chris@zankel.net>
Sun, 5 Aug 2007 18:24:13 +0000 (11:24 -0700)
committerChris Zankel <chris@zankel.net>
Mon, 27 Aug 2007 20:53:46 +0000 (13:53 -0700)
Add macros (__XTENSA_UL and __XTENSA_UL_CONST) for typecasting
constants.

Signed-off-by: Chris Zankel <chris@zankel.net>
include/asm-xtensa/processor.h
include/asm-xtensa/types.h

index 4feb9f7f35a6414bc238a154f35ced888f353005..35145bcd96ebb034847768a5ff783e1c9d457432 100644 (file)
@@ -33,7 +33,7 @@
  * the 1 GB requirement applies to the stack as well.
  */
 
-#define TASK_SIZE      0x40000000
+#define TASK_SIZE      __XTENSA_UL_CONST(0x40000000)
 
 /*
  * General exception cause assigned to debug exceptions. Debug exceptions go
index 9d99a8e9e337101af6fc2bb6881cabc85103915d..f1e84526f9992b3c98a96aad641cc01448c1b345 100644 (file)
 #ifndef _XTENSA_TYPES_H
 #define _XTENSA_TYPES_H
 
+
+#ifdef __ASSEMBLY__
+# define __XTENSA_UL(x)                (x)
+# define __XTENSA_UL_CONST(x)  x
+#else
+# define __XTENSA_UL(x)                ((unsigned long)(x))
+# define __XTENSA_UL_CONST(x)  x##UL
+#endif
+
 #ifndef __ASSEMBLY__
 
 typedef unsigned short umode_t;