[Cbe-oss-dev] [PATCH 01/17]MARS/core: Increase exec bss int size
Yuji Mano
yuji.mano at am.sony.com
Wed Dec 3 13:58:38 EST 2008
Update workload module structure definition.
This increases the 'exec_size' and 'bss_size' structure members from 16-bit
to 32-bit integers in order to support workload modules greater than 64K.
Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
core/include/common/mars/workload_types.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
--- a/core/include/common/mars/workload_types.h
+++ b/core/include/common/mars/workload_types.h
@@ -42,8 +42,7 @@
#define MARS_WORKLOAD_MODULE_ELF_VADDR 0x4000 /* elf vaddr */
-#define MARS_WORKLOAD_MODULE_SIZE 16 /* size of 16 bytes */
-#define MARS_WORKLOAD_MODULE_ALIGN 16 /* align to 16 bytes */
+#define MARS_WORKLOAD_MODULE_SIZE 20 /* size of 20 bytes */
#define MARS_WORKLOAD_CONTEXT_SIZE 128 /* size of 128 bytes */
#define MARS_WORKLOAD_CONTEXT_ALIGN 128 /* align to 128 bytes */
@@ -51,10 +50,10 @@
/* mars workload module */
struct mars_workload_module {
uint64_t exec_ea; /* ea of exec */
- uint16_t exec_size; /* size of text and data of exec */
- uint16_t bss_size; /* size of bss in memory of exec */
+ uint32_t exec_size; /* size of text and data of exec */
+ uint32_t bss_size; /* size of bss in memory of exec */
uint32_t entry; /* entry address of exec */
-} __attribute__((aligned(MARS_WORKLOAD_MODULE_ALIGN)));
+} __attribute__((packed));
/* mars workload context */
struct mars_workload_context {
More information about the cbe-oss-dev
mailing list