[U-Boot] [PATCH] jffs2: some fixes to summary support
Mike Frysinger
vapier at gentoo.org
Sat Jul 18 21:28:25 CEST 2009
On Friday 17 July 2009 07:02:42 Ilya Yanok wrote:
> +#ifdef CONFIG_JFFS2_SUMMARY
> +static u32 sum_get_unaligned32(u32 *ptr)
> +{
> + u32 val;
> + u8 *p = (u8 *)ptr;
> +
> + val = *p | (*(p + 1) << 8) | (*(p + 2) << 16) | (*(p + 3) << 24);
> +
> + return __le32_to_cpu(val);
> +}
> +
> +static u16 sum_get_unaligned16(u16 *ptr)
> +{
> + u16 val;
> + u8 *p = (u8 *)ptr;
> +
> + val = *p | (*(p + 1) << 8);
> +
> + return __le16_to_cpu(val);
> +}
do get_unaligned_le16 and such not work ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090718/99166bb2/attachment.pgp
More information about the U-Boot
mailing list