Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=24a9ab7fa143498802b35c66de10cc3cfdac2c51
Commit:     24a9ab7fa143498802b35c66de10cc3cfdac2c51
Parent:     2b8aea74e78e977b1f9987e23e3e59f3ef4359f4
Author:     Chris Zankel <[EMAIL PROTECTED]>
AuthorDate: Sun Aug 5 11:24:13 2007 -0700
Committer:  Chris Zankel <[EMAIL PROTECTED]>
CommitDate: Mon Aug 27 13:53:46 2007 -0700

    [XTENSA] Add typecast macro for constants
    
    Add macros (__XTENSA_UL and __XTENSA_UL_CONST) for typecasting
    constants.
    
    Signed-off-by: Chris Zankel <[EMAIL PROTECTED]>
---
 include/asm-xtensa/processor.h |    2 +-
 include/asm-xtensa/types.h     |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/include/asm-xtensa/processor.h b/include/asm-xtensa/processor.h
index 4feb9f7..35145bc 100644
--- a/include/asm-xtensa/processor.h
+++ b/include/asm-xtensa/processor.h
@@ -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
diff --git a/include/asm-xtensa/types.h b/include/asm-xtensa/types.h
index 9d99a8e..f1e8452 100644
--- a/include/asm-xtensa/types.h
+++ b/include/asm-xtensa/types.h
@@ -11,6 +11,15 @@
 #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;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to