summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/cpu/mpc8xxx
diff options
context:
space:
mode:
authorPriyanka Jain <priyanka.jain@nxp.com>2021-02-05 14:01:11 +0530
committerPriyanka Jain <priyanka.jain@nxp.com>2021-02-08 14:01:19 +0530
commit43d1d391f6580a500659745343a6226c5034361e (patch)
tree64290dd95515f32d2b0ca9bbfe7e20692ec537f2 /arch/powerpc/cpu/mpc8xxx
parent19dba8bf9f4c87278b8e6e2133ebc39f4edb6592 (diff)
downloadu-boot-43d1d391f6580a500659745343a6226c5034361e.tar.gz
u-boot-43d1d391f6580a500659745343a6226c5034361e.tar.xz
u-boot-43d1d391f6580a500659745343a6226c5034361e.zip
mpc8xxx: fsl_pamu: Update data type in config_pamu
Update data type of '1' to '1ull' in below assignment size = 1ull << sizebit; to fix incorrect assignment issue. e.g: when sizebit was 31, 0x80000000 got sign extended to 0xffffffff_80000000 Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Reported-by: Dean Saridakis <dean.saridakis@baesystems.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/fsl_pamu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
index 2c378b7615..5229949951 100644
--- a/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
+++ b/arch/powerpc/cpu/mpc8xxx/fsl_pamu.c
@@ -390,7 +390,7 @@ int config_pamu(struct pamu_addr_tbl *tbl, int num_entries, uint32_t liodn)
return -1;
sizebit = __ilog2_roundup_64(size);
- size = 1 << sizebit;
+ size = 1ull << sizebit;
debug("min start_addr is %llx\n", min_addr);
debug("max end_addr is %llx\n", max_addr);
debug("size found is %llx\n", size);