diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2018-03-02 14:25:41 +0800 |
---|---|---|
committer | Haojian Zhuang <haojian.zhuang@linaro.org> | 2018-03-06 17:59:47 +0800 |
commit | 84b589c9e703c11bf3449d62c09c2363c2520b99 (patch) | |
tree | af0fd650d77a22a00bcccc588de596a42364a6ef /plat/hisilicon | |
parent | 056b3d49b234f74e9bf148978cadd35332ef46b3 (diff) | |
download | trusted-firmware-a-84b589c9e703c11bf3449d62c09c2363c2520b99.tar.gz |
hikey: fix build issue with CLANG
plat/hisilicon/hikey/hikey_bl1_setup.c:565:47:
error: value size does not match register size specified by the
constraint and modifier [-Werror,-Wasm-operand-widths]
__asm__ volatile ("mrs %0, cpacr_el1" : "=r"(data));
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Diffstat (limited to 'plat/hisilicon')
-rw-r--r-- | plat/hisilicon/hikey/hikey_bl1_setup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plat/hisilicon/hikey/hikey_bl1_setup.c b/plat/hisilicon/hikey/hikey_bl1_setup.c index df0ad8e037..52dcf6b1e1 100644 --- a/plat/hisilicon/hikey/hikey_bl1_setup.c +++ b/plat/hisilicon/hikey/hikey_bl1_setup.c @@ -572,7 +572,7 @@ image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) void bl1_plat_set_ep_info(unsigned int image_id, entry_point_info_t *ep_info) { - unsigned int data = 0; + uint64_t data = 0; if (image_id == BL2_IMAGE_ID) return; @@ -583,7 +583,7 @@ void bl1_plat_set_ep_info(unsigned int image_id, __asm__ volatile ("msr cpacr_el1, %0" : : "r"(data)); __asm__ volatile ("mrs %0, cpacr_el1" : "=r"(data)); } while ((data & (3 << 20)) != (3 << 20)); - INFO("cpacr_el1:0x%x\n", data); + INFO("cpacr_el1:0x%lx\n", data); ep_info->args.arg0 = 0xffff & read_mpidr(); ep_info->spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, |