diff options
author | Hong Guo <hong.guo@amlogic.com> | 2019-04-17 10:48:42 +0800 |
---|---|---|
committer | Dongjin Kim <tobetter@gmail.com> | 2019-05-16 13:21:28 +0900 |
commit | cf98258402430064ea760a1c781bfe1cb00de37d (patch) | |
tree | a1e8c927974247ea7882ba05b585fd67a06f637e | |
parent | 122b7f04618f2bf77a8d9bc88c215e527d08f884 (diff) | |
download | u-boot-odroid-c1-cf98258402430064ea760a1c781bfe1cb00de37d.tar.gz |
suspend: modify stack size for tm2 [1/2]
PD#SWPL-7291
Problem:
modify stack size for tm2
Solution:
modify stack size for tm2
Verify:
test pass on t962e2_ab319
Change-Id: Id761c1945fc3cc433d93d92e9ff659469d0066c3
Signed-off-by: Hong Guo <hong.guo@amlogic.com>
-rw-r--r-- | arch/arm/cpu/armv8/tm2/firmware/scp_task/config.h | 2 | ||||
-rw-r--r-- | arch/arm/cpu/armv8/tm2/firmware/scp_task/user_task.lds | 16 |
2 files changed, 14 insertions, 4 deletions
diff --git a/arch/arm/cpu/armv8/tm2/firmware/scp_task/config.h b/arch/arm/cpu/armv8/tm2/firmware/scp_task/config.h index de0eae65d4..6dcbfd26b6 100644 --- a/arch/arm/cpu/armv8/tm2/firmware/scp_task/config.h +++ b/arch/arm/cpu/armv8/tm2/firmware/scp_task/config.h @@ -26,7 +26,7 @@ #define CONFIG_RAM_SIZE (13 * 1024) #define CONFIG_RAM_END (CONFIG_RAM_BASE+CONFIG_RAM_SIZE) -#define CONFIG_TASK_STACK_SIZE 512 +#define CONFIG_TASK_STACK_SIZE (1024 + 512) #define TASK_SHARE_MEM_SIZE 1024 /* secure share memory last unsigned are used diff --git a/arch/arm/cpu/armv8/tm2/firmware/scp_task/user_task.lds b/arch/arm/cpu/armv8/tm2/firmware/scp_task/user_task.lds index e93cb64a8c..b871248ca6 100644 --- a/arch/arm/cpu/armv8/tm2/firmware/scp_task/user_task.lds +++ b/arch/arm/cpu/armv8/tm2/firmware/scp_task/user_task.lds @@ -19,13 +19,23 @@ SECTIONS } .data : { - *(.bss .data .rodata*) + *(.data .rodata*) } . = ALIGN(4); _bssstart = . ; - .bss : { *(.bss) } - . = ALIGN(4); + + + .bss : + { + *(.sbss*) + *(.gnu.linkonce.sb.*) + *(.bss .bss.*) + *(.gnu.linkonce.b.*) + *(COMMON) + . = ALIGN(4); + } + _bssend = . ; . = CONFIG_RAM_END - 3*CONFIG_TASK_STACK_SIZE - 128; |