[U-Boot] [PATCH 3/3] ARM: add unaligned macros

Wolfgang Denk wd at denx.de
Thu Jun 4 21:03:47 CEST 2009


Dear Daniel Mack,

In message <20090604174208.GM26688 at buzzloop.caiaq.de> you wrote:
>
> +static inline u16 get_unaligned_le16(const void *p)
> +{
> +	return __get_unaligned_cpu16((const u8 *)p);
> +}
> +
> +static inline u32 get_unaligned_le32(const void *p)
> +{
> +	return __get_unaligned_cpu32((const u8 *)p);
> +}
> +
> +static inline u64 get_unaligned_le64(const void *p)
> +{
> +	return __get_unaligned_cpu64((const u8 *)p);
> +}

Are these 3 really all "u8" pointers, or is this a copy & paste error?


Is there any guarantee that such macros are never used on device
registers and the like?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It is better to have tried and failed than to have  failed  to  try,
but the result's the same."                           - Mike Dennison


More information about the U-Boot mailing list