WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

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

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [PATCH] merge U/UL/ULL solutions (code cleanup)
From: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>
Date: Wed, 02 May 2007 09:33:03 +0200
Delivery-date: Wed, 02 May 2007 00:31:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070301)
[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
<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [PATCH] merge U/UL/ULL solutions (code cleanup), Christian Ehrhardt <=