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

Re: [Xen-devel] [PATCH RFC 09/23] lz4: add support for OSes that don't have asm/unaligned.h



Roger Pau Monne writes ("[PATCH RFC 09/23] lz4: add support for OSes that don't 
have asm/unaligned.h"):
> Add a configure check for asm/unaligned.h presence, and if it's not
> available open-code the necessary functions for lz4.

Where did this code come from ?

Is there nothing in the FreeBSD environment that we could reuse ?

> +struct __una_u32 { uint32_t x __attribute__((packed)); };
> +struct __una_u16 { uint16_t x __attribute__((packed)); };

Are you sure this actually works ?  I can't see anything in the GCC
4.4 docs which requires the compiler to generate special code to
access such a variable.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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