cactus: Reorganize stack
Create a new section for the stacks inside of BSS. SPM zeroes the
memory in any region marked as BSS, so it isn't needed to do it here.
Note that now each region (text, rodata, data, bss) need to be aligned
to a page boundary so that they can be different regions in the resource
description.
Previously the memory to be used as stack was passed in the boot info
struct. Now this is not needed as the partition can define all regions
it wants to use.
Change-Id: If330e27b0b27dde93b6c9e63b7136d23bdc7dd9e
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
diff --git a/spm/cactus/cactus.h b/spm/cactus/cactus.h
index 966b154..94d214c 100644
--- a/spm/cactus/cactus.h
+++ b/spm/cactus/cactus.h
@@ -19,9 +19,9 @@
#define CACTUS_RODATA_START ((uintptr_t)&__RODATA_START__)
#define CACTUS_RODATA_END ((uintptr_t)&__RODATA_END__)
-extern uintptr_t __RWDATA_START__, __RWDATA_END__;
-#define CACTUS_RWDATA_START ((uintptr_t)&__RWDATA_START__)
-#define CACTUS_RWDATA_END ((uintptr_t)&__RWDATA_END__)
+extern uintptr_t __DATA_START__, __DATA_END__;
+#define CACTUS_DATA_START ((uintptr_t)&__DATA_START__)
+#define CACTUS_DATA_END ((uintptr_t)&__DATA_END__)
extern uintptr_t __BSS_START__, __BSS_END__;
#define CACTUS_BSS_START ((uintptr_t)&__BSS_START__)