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>
This commit is contained in:
parent
c2d5a1651e
commit
67ce04ea9a
|
@ -23,6 +23,7 @@
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <libgen.h>
|
#include <libgen.h>
|
||||||
|
#include <asm/byteorder.h>
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "cbfs.h"
|
#include "cbfs.h"
|
||||||
#include "elf.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
|
* When executing the branch, the PC will read as the address
|
||||||
* of current instruction + 8.
|
* 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->magic = ntohl(CBFS_HEADER_MAGIC);
|
||||||
master_header->version = ntohl(VERSION);
|
master_header->version = ntohl(VERSION);
|
||||||
|
|
Loading…
Reference in New Issue