Merge changes from topic "db/unsigned_long" into integration
authorSandrine Bailleux <sandrine.bailleux@arm.com>
Wed, 18 Sep 2019 14:30:09 +0000 (14:30 +0000)
committerTrustedFirmware Code Review <review@review.trustedfirmware.org>
Wed, 18 Sep 2019 14:30:09 +0000 (14:30 +0000)
* changes:
  Unsigned long should not be used as per coding guidelines
  SCTLR and ACTLR are 32-bit for AArch32 and 64-bit for AArch64

bl1/aarch64/bl1_arch_setup.c
bl1/bl1_fwu.c
bl1/bl1_main.c
lib/el3_runtime/aarch64/context_mgmt.c

index 624bd80f2413736f003917dd525826b3820ed3a7..0a1cb304ac766a33ddd07dd011b4fcba43a3c544 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2013-2014, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2013-2019, ARM Limited and Contributors. All rights reserved.
  *
  * SPDX-License-Identifier: BSD-3-Clause
  */
@@ -23,7 +23,7 @@ void bl1_arch_setup(void)
  ******************************************************************************/
 void bl1_arch_next_el_setup(void)
 {
-       unsigned long next_sctlr;
+       u_register_t next_sctlr;
 
        /* Use the same endianness than the current BL */
        next_sctlr = (read_sctlr_el3() & SCTLR_EE_BIT);
index d222b9c525cbb0571818ae946953b0b44856e57e..48f08d2ca84b9f69351889d31c18d439f810b2f9 100644 (file)
@@ -483,7 +483,7 @@ static int bl1_fwu_image_auth(unsigned int image_id,
         * Flush image_info to memory so that other
         * secure world images can see changes.
         */
-       flush_dcache_range((unsigned long)&image_desc->image_info,
+       flush_dcache_range((uintptr_t)&image_desc->image_info,
                sizeof(image_info_t));
 
        INFO("BL1-FWU: Authentication was successful\n");
index df01dbae0b1baacda2c5fae3cf7e00d47e28b1e9..2bb85114fd8b36e504c9245140361697d6926485 100644 (file)
@@ -49,7 +49,7 @@ void bl1_calc_bl2_mem_layout(const meminfo_t *bl1_mem_layout,
        bl2_mem_layout->total_base = bl1_mem_layout->total_base;
        bl2_mem_layout->total_size = BL1_RW_BASE - bl1_mem_layout->total_base;
 
-       flush_dcache_range((unsigned long)bl2_mem_layout, sizeof(meminfo_t));
+       flush_dcache_range((uintptr_t)bl2_mem_layout, sizeof(meminfo_t));
 }
 
 /*******************************************************************************
index 446d9da92597cd7a2b6b6b2f46434ddc0290a826..a05ee5a6e4970542d6a592f0ef0a8606a2c923a1 100644 (file)
@@ -69,7 +69,7 @@ void cm_setup_context(cpu_context_t *ctx, const entry_point_info_t *ep)
        uint32_t scr_el3;
        el3_state_t *state;
        gp_regs_t *gp_regs;
-       unsigned long sctlr_elx, actlr_elx;
+       u_register_t sctlr_elx, actlr_elx;
 
        assert(ctx != NULL);