mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 01:24:27 +00:00
fix(memmap): fix footprint free space calculation
Calculate the free space as the range between the limit and the end of the memory region *_REGION_END. Change-Id: I9cacadea2543c9f5ddaebca82344a83678cd7d55 Signed-off-by: Harrison Mutai <harrison.mutai@arm.com>
This commit is contained in:
parent
eefa45cfaf
commit
9e72d01ed2
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Copyright (c) 2023, Arm Limited. All rights reserved.
|
||||
# Copyright (c) 2023-2024, Arm Limited. All rights reserved.
|
||||
#
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
@ -57,7 +57,7 @@ class TfaMapParser:
|
|||
|
||||
if "start" and "length" and "end" in memory_layout[region]:
|
||||
memory_layout[region]["limit"] = (
|
||||
memory_layout[region]["end"]
|
||||
memory_layout[region]["start"]
|
||||
+ memory_layout[region]["length"]
|
||||
)
|
||||
memory_layout[region]["free"] = (
|
||||
|
|
Loading…
Add table
Reference in a new issue