[coreboot] New patch to review for coreboot: 266294f armv7: use __cpu_to_le32 for endianness of reset vector instruction
David Hendricks (dhendrix@chromium.org)
gerrit at coreboot.org
Fri Dec 7 03:30:29 CET 2012
David Hendricks (dhendrix at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1979
-gerrit
commit 266294f31eb1d9a4f677d01d9a1777aafca8a342
Author: David Hendricks <dhendrix at chromium.org>
Date: Thu Dec 6 18:21:21 2012 -0800
armv7: use __cpu_to_le32 for endianness of reset vector instruction
Change-Id: Ic8f35d7172f6afa933c24774177ed65e6dc579a0
Signed-off-by: David Hendricks <dhendrix at chromium.org>
---
util/cbfstool/common.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index 7e33c97..fdedfbd 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);
More information about the coreboot
mailing list