Re: [U-Boot] [PATCH 3/6] arm: Allow u32 as addrs for readX/writeX

2016-03-29 Thread Hans de Goede
Hi, On 03/29/2016 05:29 PM, Alexander Graf wrote: Gcc warns when you try to cast a u32 value into a pointer directly. When someone calls functions like readl or writel, he's pretty sure the parameter he passes is an address though, so we can as well cast it for him. This makes porting 32bit

[U-Boot] [PATCH 3/6] arm: Allow u32 as addrs for readX/writeX

2016-03-29 Thread Alexander Graf
Gcc warns when you try to cast a u32 value into a pointer directly. When someone calls functions like readl or writel, he's pretty sure the parameter he passes is an address though, so we can as well cast it for him. This makes porting 32bit code to armv8 easier, as it means we don't have to