Hello Mike,

> +     union {
> +             u32 enetaddr32;
> +             u16 enetaddr16[3];
> +             unsigned char enetaddr[6];
> +     };

This will work only as long the endianess is matching.

Picking single chars from enetaddr[] and combine them to a u32 register
will be more independent from endianess.

If this goes in, I would like to see at least a comment about the problem.

Best Regards,
Thomas
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to