aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hw/fsp/fsp-mdst-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/fsp/fsp-mdst-table.c b/hw/fsp/fsp-mdst-table.c
index e6018aa..0f145ba 100644
--- a/hw/fsp/fsp-mdst-table.c
+++ b/hw/fsp/fsp-mdst-table.c
@@ -90,7 +90,7 @@ static inline uint32_t get_dump_region_map_size(uint64_t addr, uint32_t size)
start = addr & ~TCE_MASK;
end = addr + size;
- end = (end + (TCE_MASK - 1)) & ~TCE_MASK;
+ end = ALIGN_UP(end, TCE_PSIZE);
return (end - start);
}