commit | 9a23ffa5bf0596f307f0f13d858f66e2414665c6 | [log] [tgz] |
---|---|---|
author | Jamie Fox <jamie.fox@arm.com> | Mon Aug 21 17:14:16 2023 +0100 |
committer | David Hu <david.hu@arm.com> | Tue Aug 29 11:49:54 2023 +0200 |
tree | 9725c237cac582922bbd6e6fc58e46da159eed30 | |
parent | b6b351ee4071f2d8c2154f482ad94704f3001a81 [diff] |
Platform: Fix boundary MPU region allocation The Armv8-M implementation of tfm_hal_bind_boundary() increments the MPU region number before creating the region, which creates a one region gap after the static regions. Fix it to increment after. Also, move the MPU disable to after the check to avoid leaving the MPU disabled in case the check fails and the function returns early. Signed-off-by: Jamie Fox <jamie.fox@arm.com> Change-Id: Ib74a64db8f45400792e38df1c5bfdfbe43acfed6