remoteproc: make sure we're parsing a 32bit firmware
authorOhad Ben-Cohen <ohad@wizery.com>
Mon, 13 Feb 2012 21:12:24 +0000 (22:12 +0100)
committerOhad Ben-Cohen <ohad@wizery.com>
Tue, 28 Feb 2012 16:03:40 +0000 (18:03 +0200)
commit40b78b2cc75315a76ab1863be744d8580030f924
treeca7b9a5299fd5346c61491e333491354beb92794
parente12bc14b88d44e5c1456dccb59ff58103f6c6edc
remoteproc: make sure we're parsing a 32bit firmware

Make sure we're parsing a 32bit image, since we only support
the ELF32 binary format at this point.

This should prevent unexpected behavior with non 32bit binaries.

Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Mark Grosen <mgrosen@ti.com>
Cc: Suman Anna <s-anna@ti.com>
Cc: Fernando Guzman Lugo <fernando.lugo@ti.com>
Cc: Rob Clark <rob@ti.com>
Cc: Ludovic BARRE <ludovic.barre@stericsson.com>
Cc: Loic PALLARDY <loic.pallardy@stericsson.com>
Cc: Omar Ramirez Luna <omar.luna@linaro.org>
drivers/remoteproc/remoteproc_core.c