From ccdfa33bf72d0bd9777817fe542f1a11077ef175 Mon Sep 17 00:00:00 2001 From: Stefan Tauner Date: Fri, 26 Jan 2024 09:53:13 +0100 Subject: [PATCH] Add support to add attributes to static_memblk via macro This allows for putting it into different linker script sections to facilitate testing different memory configurations. For example MEM_STATIC_ATTR='__attribute__((section("sdram")))' tells the linker to put the data memory of coremark into the section named sdram. --- core_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core_main.c b/core_main.c index a4beeb6..3ee9245 100644 --- a/core_main.c +++ b/core_main.c @@ -82,7 +82,7 @@ ee_s32 get_seed_32(int i); #endif #if (MEM_METHOD == MEM_STATIC) -ee_u8 static_memblk[TOTAL_DATA_SIZE]; +MEM_STATIC_ATTR ee_u8 static_memblk[TOTAL_DATA_SIZE]; #endif char *mem_name[3] = { "Static", "Heap", "Stack" }; /* Function: main