[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[XenPPC] [PATCH] merge U/UL/ULL solutions (code cleanup)



[XEN][POWERPC] merge U/UL/ULL solutions (code cleanup)
There are currently two very similar solutions to support notations like "0x1234UL". One is in asm/msr.h (ULL) and the other one in asm/config.h (U & UL). ULL may be needed in a scope out of msr.h so I moved it to config.h and merged it with the solution for U & UL. This should be a useful code cleanup for anyone working with these number notations.

Signed-off-by: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>

Grüsse / regards,
Christian Ehrhardt

IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385
Ehrhardt@xxxxxxxxxxxxxxxxxxx
Ehrhardt@xxxxxxxxxx

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen
Geschäftsführung: Herbert Kircher
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294


diff -r 736f2d6d7b09 xen/include/asm-powerpc/config.h
--- a/xen/include/asm-powerpc/config.h  Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/include/asm-powerpc/config.h  Wed May 02 05:51:19 2007 +0200
@@ -29,11 +29,13 @@
 /* older assemblers do not like UL */
 #define U(x) (x)
 #define UL(x) (x)
+#define ULL(x) (x)
 
 #else /* __ASSEMBLY__ */
 
 #define U(x) (x ## U)
 #define UL(x) (x ## UL)
+#define ULL(x) (x ## ULL)
 extern char __bss_start[];
 #endif
 
diff -r 736f2d6d7b09 xen/include/asm-powerpc/msr.h
--- a/xen/include/asm-powerpc/msr.h     Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/include/asm-powerpc/msr.h     Wed May 02 05:51:19 2007 +0200
@@ -20,12 +20,6 @@
 
 #ifndef _POWERPC_MSR_H
 #define _POWERPC_MSR_H
-
-#ifdef __ASSEMBLY__
-#define ULL(x) x
-#else
-#define ULL(x) x ## ULL
-#endif
 
 /* Flags in MSR: */
 #define MSR_SF      ULL(0x8000000000000000)
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.