[PATCH 11/17] ARM: fixup atags to be endian agnostic
Russell King - ARM Linux
linux at arm.linux.org.uk
Sat Feb 9 07:06:31 EST 2013
On Fri, Feb 08, 2013 at 11:17:41PM +0000, Ben Dooks wrote:
> + { atag32_to_cpu(tag_size(tag_core)), atag32_to_cpu(ATAG_CORE) },
> + { atag32_to_cpu(1), atag32_to_cpu(PAGE_SIZE), atag32_to_cpu(0xff) },
> + { atag32_to_cpu(tag_size(tag_mem32)), atag32_to_cpu(ATAG_MEM) },
> + { atag32_to_cpu(MEM_SIZE) },
> + { atag32_to_cpu(0), atag32_to_cpu(ATAG_NONE) }
Again, this needs to be cpu_to_atag32().
Pay attention to what you're converting from and to. Consider them
totally separate types that just happen to be integers, and ensure
that you match the types in your functions.
More information about the linux-arm-kernel
mailing list