Unverified Commit f5c1eed2 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #1302 from hzhuang1/fix_build

Fix build with clang on hikey
parents dbf9f283 84b589c9
...@@ -572,7 +572,7 @@ image_desc_t *bl1_plat_get_image_desc(unsigned int image_id) ...@@ -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, void bl1_plat_set_ep_info(unsigned int image_id,
entry_point_info_t *ep_info) entry_point_info_t *ep_info)
{ {
unsigned int data = 0; uint64_t data = 0;
if (image_id == BL2_IMAGE_ID) if (image_id == BL2_IMAGE_ID)
return; return;
...@@ -583,7 +583,7 @@ void bl1_plat_set_ep_info(unsigned int image_id, ...@@ -583,7 +583,7 @@ void bl1_plat_set_ep_info(unsigned int image_id,
__asm__ volatile ("msr cpacr_el1, %0" : : "r"(data)); __asm__ volatile ("msr cpacr_el1, %0" : : "r"(data));
__asm__ volatile ("mrs %0, cpacr_el1" : "=r"(data)); __asm__ volatile ("mrs %0, cpacr_el1" : "=r"(data));
} while ((data & (3 << 20)) != (3 << 20)); } 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->args.arg0 = 0xffff & read_mpidr();
ep_info->spsr = SPSR_64(MODE_EL1, MODE_SP_ELX, ep_info->spsr = SPSR_64(MODE_EL1, MODE_SP_ELX,
......
...@@ -287,9 +287,9 @@ void hisi_enable_pdc(unsigned int cluster) ...@@ -287,9 +287,9 @@ void hisi_enable_pdc(unsigned int cluster)
mmio_write_32((uintptr_t)pdc_base_addr, 0x1); mmio_write_32((uintptr_t)pdc_base_addr, 0x1);
} }
static inline void hisi_pdc_set_intmask(void *pdc_base_addr, void hisi_pdc_set_intmask(void *pdc_base_addr,
unsigned int core, unsigned int core,
enum pdc_finish_int_mask intmask) enum pdc_finish_int_mask intmask)
{ {
unsigned int val; unsigned int val;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment