summaryrefslogtreecommitdiff
path: root/util/cbfstool/common.c
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2012-12-08 23:10:08 +0100
committerRonald G. Minnich <rminnich@gmail.com>2012-12-09 00:00:30 +0100
commit1224626e3b6eef255b9faac60a18807acebc1f3d (patch)
tree853ff080b254f021919ce3fcc40e626bab46c8f7 /util/cbfstool/common.c
parent198d23c119bdf375ffa7ef57b6172755d6490213 (diff)
Revert "armv7: use __cpu_to_le32 for endianness of reset vector instruction"
This reverts commit 67ce04ea9a9c7e30dd96b9f36a938b51655e8a44 Change-Id: I2781c9275c03bcabf0211e1b6cd1aa8f13005ae0 Reviewed-on: http://review.coreboot.org/2014 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/cbfstool/common.c')
-rw-r--r--util/cbfstool/common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index fdedfbd93d..7e33c97653 100644
--- a/util/cbfstool/common.c
+++ b/util/cbfstool/common.c
@@ -23,7 +23,6 @@
#include <stdlib.h>
#include <string.h>
#include <libgen.h>
-#include <asm/byteorder.h>
#include "common.h"
#include "cbfs.h"
#include "elf.h"
@@ -581,7 +580,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] = __cpu_to_le32(0xea00000e); // branch to . + 64 bytes
+ arm_vec[0] = htonl(0x0e0000ea); // branch to . + 64 bytes
master_header->magic = ntohl(CBFS_HEADER_MAGIC);
master_header->version = ntohl(VERSION);