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

Re: [Xen-devel] Re: [RFC PATCH 10/35] Add a new head.S start-of-dayfile

To: "Andreas Kleen" <ak@xxxxxxx>
Subject: Re: [Xen-devel] Re: [RFC PATCH 10/35] Add a new head.S start-of-dayfile for booting on Xen.
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Wed, 22 Mar 2006 20:30:43 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 22 Mar 2006 19:32:06 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>> + * __xen_guest information
>> + */
>> +.macro utoa value
>> + .if (\value) < 0 || (\value) >= 0x10
>> +    utoa (((\value)>>4)&0x0fffffff)
>> + .endif
>> + .if ((\value) & 0xf) < 10
>> +  .byte '0' + ((\value) & 0xf)
>> + .else
>> +  .byte 'A' + ((\value) & 0xf) - 10
>> + .endif
>> +.endm
>
>Interesting macro abuse.

Abuse? That's what macros are for, I thought.

Jan

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

<Prev in Thread] Current Thread [Next in Thread>
  • Re: [Xen-devel] Re: [RFC PATCH 10/35] Add a new head.S start-of-dayfile for booting on Xen., Jan Beulich <=