summaryrefslogtreecommitdiff
path: root/lib/psci/psci_setup.c
diff options
context:
space:
mode:
authorRadoslaw Biernacki <radoslaw.biernacki@linaro.org>2018-05-17 22:19:35 +0200
committerSandrine Bailleux <sandrine.bailleux@arm.com>2019-09-18 15:58:13 +0200
commit9a006ad10509cf158089470ef713f7edde073eaf (patch)
tree3730ccc4409e0b16b1a109db1aad41d3dfe3d39e /lib/psci/psci_setup.c
parent301d27d998892c054dec925264f81b11dcd64822 (diff)
qemu: Simplify the image size calculation
Patch introduce the macro NS_IMAGE_MAX_SIZE to simplify the image size calculation. Use of additional parenthesis removes the possibility of improper calculations due nested macro expansion for subtraction. In case of platforms with DRAM window over 32bits, patch also removes potential problems with type casting, as meminfo.image_size is uint32_t but macro calculations were done in 64bit space. Signed-off-by: Radoslaw Biernacki <radoslaw.biernacki@linaro.org> Change-Id: I2d05a2d9dd6000dba6114df53262995cf85af018
Diffstat (limited to 'lib/psci/psci_setup.c')
0 files changed, 0 insertions, 0 deletions