commit | 8ff447700ba0647404821ad8f7f8bfbd114b227e | [log] [tgz] |
---|---|---|
author | Dawid Niedzwiecki <dawidn@google.com> | Wed Jan 24 08:48:21 2024 +0100 |
committer | Fabio Baltieri <fabio.baltieri@gmail.com> | Fri Jan 26 09:33:09 2024 +0000 |
tree | aea2032b3dd5f060ae1c68cc72459411eb299eb2 | |
parent | a4f004e654cac92051c7d72ceada5162e3049b7d [diff] |
arm: mpu: clear mpu regions before initialization Disabling the MPU doesn't clear regions configuration. There is a risk in multi-image environment that there are some old region setting e.g. stack guard. This may cause a memory fault, because of different images layout e.g. RO/RW. Just clear and disable all regions configuration before the new initialization. Signed-off-by: Dawid Niedzwiecki <dawidn@google.com>