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

2009-06-04 Thread Daniel Mack
Signed-off-by: Daniel Mack dan...@caiaq.de --- include/asm-arm/unaligned.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 include/asm-arm/unaligned.h diff --git a/include/asm-arm/unaligned.h b/include/asm-arm/unaligned.h new file mode 100644 index

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

2009-06-04 Thread Daniel Mack
On Thu, Jun 04, 2009 at 12:27:21PM +0200, Daniel Mack wrote: --- include/asm-arm/unaligned.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 include/asm-arm/unaligned.h This one was too easy, updated patch below. With that one applied, the lzo1x

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

2009-06-04 Thread Wolfgang Denk
Dear Daniel Mack, In message 20090604174208.gm26...@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

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

2009-06-04 Thread Daniel Mack
On Thu, Jun 04, 2009 at 09:03:47PM +0200, Wolfgang Denk 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); +}

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

2009-06-04 Thread Stefan Roese
On Thursday 04 June 2009 21:23:31 Daniel Mack wrote: Is there any guarantee that such macros are never used on device registers and the like? Well - how can I guarantee that? Anyway - the functions can be enhanced later to make them work with different types of memories. For now, they