feat(mte): move stacks to a separate memory region
Separates CPU stack memory region to apply different memory attribute to
the stack region specifically. This memory region is marked as "Normal
Inner Write-Back, Outer Write-Back, Read-Allocate, Write-Allocate
Non-transient memory." for now.
Zeroes the stack section on the image entry.
Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
Change-Id: Iaa68c7d16cae73c31e3741f94d2c6c85ca457b19
diff --git a/src/vm.c b/src/vm.c
index 9e25d7d..aa25fb8 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -368,6 +368,8 @@
vm_unmap(vm_locked, layout_rodata_begin(), layout_rodata_end(),
ppool) &&
vm_unmap(vm_locked, layout_data_begin(), layout_data_end(),
+ ppool) &&
+ vm_unmap(vm_locked, layout_stacks_begin(), layout_stacks_end(),
ppool);
}