From 9e72d01ed29c350dfc0567c59bc482901211634b Mon Sep 17 00:00:00 2001 From: Harrison Mutai Date: Tue, 5 Sep 2023 11:25:31 +0100 Subject: [PATCH] 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 --- tools/memory/memory/mapparser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/memory/memory/mapparser.py b/tools/memory/memory/mapparser.py index b1a4b4c5ca..ce4cc31136 100644 --- a/tools/memory/memory/mapparser.py +++ b/tools/memory/memory/mapparser.py @@ -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 @@ def get_memory_layout(self) -> dict: 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"] = (