[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



>> + * __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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.