ia64/xen-unstable

changeset 8933:bea58b594c4a

Simplify utoa macro, make it identical with x86_64 version.

Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
author cl349@firebug.cl.cam.ac.uk
date Mon Feb 20 16:49:35 2006 +0000 (2006-02-20)
parents 012e133941fc
children 011d6df76979
files linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S	Mon Feb 20 16:42:54 2006 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/head-xen.S	Mon Feb 20 16:49:35 2006 +0000
     1.3 @@ -193,18 +193,14 @@ ENTRY(_stext)
     1.4  /*
     1.5   * __xen_guest information
     1.6   */
     1.7 -.macro bigutoa value
     1.8 -	utoa (\value) >> 12
     1.9 -	.ascii "000"
    1.10 -.endm
    1.11  .macro utoa value
    1.12 - .if (\value) >= 16
    1.13 -	utoa (\value) >> 4
    1.14 + .if (\value) < 0 || (\value) >= 0x10
    1.15 +	utoa (((\value)>>4)&0x0fffffff)
    1.16   .endif
    1.17 - .if (\value) % 16 < 10
    1.18 -  .byte '0' + (\value) % 16
    1.19 + .if ((\value) & 0xf) < 10
    1.20 +  .byte '0' + ((\value) & 0xf)
    1.21   .else
    1.22 -  .byte 'A' + (\value) % 16 - 10
    1.23 +  .byte 'A' + ((\value) & 0xf) - 10
    1.24   .endif
    1.25  .endm
    1.26  
    1.27 @@ -212,7 +208,7 @@ ENTRY(_stext)
    1.28  	.ascii	"GUEST_OS=linux,GUEST_VER=2.6"
    1.29  	.ascii	",XEN_VER=xen-3.0"
    1.30  	.ascii	",VIRT_BASE=0x"
    1.31 -		 bigutoa __PAGE_OFFSET
    1.32 +		utoa __PAGE_OFFSET
    1.33  	.ascii	",HYPERCALL_PAGE=0x"
    1.34  		utoa ((__PHYSICAL_START+HYPERCALL_PAGE_OFFSET)>>PAGE_SHIFT)
    1.35  #ifdef CONFIG_X86_PAE