[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] Re: Add stubdomain support
On 11/02/08 17:40 +0000, Samuel Thibault wrote: > Hello, > > At last, here is the big patch that adds the stubdomain support. I > guess some reviewing will be needed before commiting it. > diff -r 7b0c0ab0566b extras/mini-os/include/byteswap.h > --- /dev/null Thu Jan 01 00:00:00 1970 +0000 > +++ b/extras/mini-os/include/byteswap.h Mon Feb 11 17:16:12 2008 +0000 > @@ -0,0 +1,22 @@ > +#ifndef _BYTESWAP_H_ > +#define _BYTESWAP_H_ > + > +/* Unfortunately not provided by newlib. */ > +#define bswap_16(x) \ > + ((((x) & 0xff00) >> 8) | (((x) & 0xff) << 8)) > + > +#define bswap_32(x) \ > + ((((x) & 0xff000000) >> 24) | (((x) & 0x00ff0000) >> 8) | \ > + (((x) & 0x0000ff00) << 8) | (((x) & 0x000000ff) << 24)) > + > +#define bswap_64(x) \ > + ((((x) & 0xff00000000000000ULL) >> 56) | \ > + (((x) & 0x00ff000000000000ULL) >> 40) | \ > + (((x) & 0x0000ff0000000000ULL) >> 24) | \ > + (((x) & 0x000000ff00000000ULL) >> 8) | \ > + (((x) & 0x00000000ff000000ULL) << 8) | \ > + (((x) & 0x0000000000ff0000ULL) << 24) | \ > + (((x) & 0x000000000000ff00ULL) << 40) | \ > + (((x) & 0x00000000000000ffULL) << 56)) > + Perhaps make these inline for type checking. Just wondering about some of the TODO notes in the patchset. I'll take a closer look. Mike -- Mike D. Day IBM LTC Cell: 919 412-3900 Sametime: ncmike@xxxxxxxxxx AIM: ncmikeday Yahoo: ultra.runner PGP key: http://www.ncultra.org/ncmike/pubkey.asc _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |