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/
Home Products Support Community News


[XenARM] [PATCH] make the ifdef generic for any 32 bit architecture.

To: jm77.ryu@xxxxxxxxxxx
Subject: [XenARM] [PATCH] make the ifdef generic for any 32 bit architecture.
From: "Jean-Christophe DUBOIS" <jcd@xxxxxxxxxxxxxxx>
Date: Thu, 8 Sep 2011 23:25:21 +0200
Cc: xen-arm@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 08 Sep 2011 14:25:30 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-arm-request@lists.xensource.com?subject=help>
List-id: Xen ARM development <xen-arm.lists.xensource.com>
List-post: <mailto:xen-arm@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-arm-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.13.6 (Linux/2.6.38-11-generic; KDE/4.6.2; x86_64; ; )
There are other #ifdef __i386__ in this file and I am not sure
They shall all be converted.

At least the variable is not overflowed anymore.

Signed-off-by: Jean-Christophe DUBOIS <jcd@xxxxxxxxxxxxxxx>
 xen/common/tmem.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/xen/common/tmem.c b/xen/common/tmem.c
index 115465b..6ff0369 100644
--- a/xen/common/tmem.c
+++ b/xen/common/tmem.c
@@ -49,12 +49,14 @@
 #define INVERT_SENTINEL(_x,_y) _x->sentinel = ~_y##_SENTINEL
 #define ASSERT_SENTINEL(_x,_y) \
     ASSERT(_x->sentinel != ~_y##_SENTINEL);ASSERT(_x->sentinel == 
-#ifdef __i386__
+/* We are on 32 bits architecture */
 #define POOL_SENTINEL 0x87658765
 #define OBJ_SENTINEL 0x12345678
 #define OBJNODE_SENTINEL 0xfedcba09
 #define PGD_SENTINEL  0x43214321
+/* 64 bits architecture */
 #define POOL_SENTINEL 0x8765876587658765
 #define OBJ_SENTINEL 0x1234567812345678
 #define OBJNODE_SENTINEL 0xfedcba0987654321

Xen-arm mailing list

<Prev in Thread] Current Thread [Next in Thread>
  • [XenARM] [PATCH] make the ifdef generic for any 32 bit architecture., Jean-Christophe DUBOIS <=