diff options
author | David Hendricks <dhendrix@chromium.org> | 2012-12-06 18:21:21 -0800 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2012-12-07 07:48:18 +0100 |
commit | 67ce04ea9a9c7e30dd96b9f36a938b51655e8a44 (patch) | |
tree | e5b1f644e3180a313322b162fb844d50f898bc6d /util | |
parent | c2d5a1651ef00542345adc4f91a096d8d04000a8 (diff) |
armv7: use __cpu_to_le32 for endianness of reset vector instruction
Change-Id: Ic8f35d7172f6afa933c24774177ed65e6dc579a0
Signed-off-by: David Hendricks <dhendrix@chromium.org>
Reviewed-on: http://review.coreboot.org/1979
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/cbfstool/common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c index 7e33c97653..fdedfbd93d 100644 --- a/util/cbfstool/common.c +++ b/util/cbfstool/common.c @@ -23,6 +23,7 @@ #include <stdlib.h> #include <string.h> #include <libgen.h> +#include <asm/byteorder.h> #include "common.h" #include "cbfs.h" #include "elf.h" @@ -580,7 +581,7 @@ int create_cbfs_image(const char *romfile, uint32_t _romsize, * When executing the branch, the PC will read as the address * of current instruction + 8. */ - arm_vec[0] = htonl(0x0e0000ea); // branch to . + 64 bytes + arm_vec[0] = __cpu_to_le32(0xea00000e); // branch to . + 64 bytes master_header->magic = ntohl(CBFS_HEADER_MAGIC); master_header->version = ntohl(VERSION); |