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-changelog

[Xen-changelog] Simplify utoa macro, make it identical with x86_64 versi

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Simplify utoa macro, make it identical with x86_64 version.
From: Xen patchbot -unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Feb 2006 18:32:10 +0000
Delivery-date: Mon, 20 Feb 2006 18:46:17 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User cl349@xxxxxxxxxxxxxxxxxxxx
# Node ID bea58b594c4af6b34ce65e6db290884eb5bb463a
# Parent  012e133941fc08c1e7078ee3d49d6b0833e96d34
Simplify utoa macro, make it identical with x86_64 version.

Signed-off-by: Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>

diff -r 012e133941fc -r bea58b594c4a 
linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S
--- a/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S  Mon Feb 20 16:42:54 2006
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S  Mon Feb 20 16:49:35 2006
@@ -193,18 +193,14 @@
 /*
  * __xen_guest information
  */
-.macro bigutoa value
-       utoa (\value) >> 12
-       .ascii "000"
-.endm
 .macro utoa value
- .if (\value) >= 16
-       utoa (\value) >> 4
+ .if (\value) < 0 || (\value) >= 0x10
+       utoa (((\value)>>4)&0x0fffffff)
  .endif
- .if (\value) % 16 < 10
-  .byte '0' + (\value) % 16
+ .if ((\value) & 0xf) < 10
+  .byte '0' + ((\value) & 0xf)
  .else
-  .byte 'A' + (\value) % 16 - 10
+  .byte 'A' + ((\value) & 0xf) - 10
  .endif
 .endm
 
@@ -212,7 +208,7 @@
        .ascii  "GUEST_OS=linux,GUEST_VER=2.6"
        .ascii  ",XEN_VER=xen-3.0"
        .ascii  ",VIRT_BASE=0x"
-                bigutoa __PAGE_OFFSET
+               utoa __PAGE_OFFSET
        .ascii  ",HYPERCALL_PAGE=0x"
                utoa ((__PHYSICAL_START+HYPERCALL_PAGE_OFFSET)>>PAGE_SHIFT)
 #ifdef CONFIG_X86_PAE

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Simplify utoa macro, make it identical with x86_64 version., Xen patchbot -unstable <=