mirror of
https://github.com/t-crest/rtems.git
synced 2025-11-16 04:24:46 +00:00
Increase stack pointer and shadow stack pointer for tcrestmp BSP
This commit is contained in:
@@ -26,8 +26,8 @@ extern "C" {
|
||||
* TODO: replace these by linker symbols
|
||||
*/
|
||||
|
||||
#define _shadow_stack_base 0x00100000
|
||||
#define _stack_cache_base 0x000f0000
|
||||
#define _shadow_stack_base 0x00200000
|
||||
#define _stack_cache_base 0x001f8000
|
||||
|
||||
#ifndef ASM
|
||||
|
||||
|
||||
@@ -23,7 +23,13 @@ CFLAGS_DEBUG_V = -O0 -Xllc -optimize-regalloc
|
||||
# linker script
|
||||
LINKER_SCRIPT = $(PROJECT_RELEASE)/lib/linkcmds
|
||||
|
||||
# stack base address
|
||||
STACK_BASE = 0x1f8000
|
||||
|
||||
# shadow stack base address
|
||||
SHADOW_STACK_BASE = 0x200000
|
||||
|
||||
LINK_LIBS += $(PROJECT_RELEASE)/lib/start.o $(PROJECT_RELEASE)/lib/libsyms.ll -l=c -l=rtemscpu -l=rtemsbsp -nostartfiles \
|
||||
-Xgold --script=$(LINKER_SCRIPT) -mpatmos-disable-vliw \
|
||||
-mpatmos-method-cache-size=0x800 -mpatmos-preferred-subfunction-size=0 -mpatmos-stack-base=0x0f0000 \
|
||||
-mpatmos-shadow-stack-base=0x100000 -Xgold -n -Xgold -entry=hard_reset
|
||||
-mpatmos-method-cache-size=0x800 -mpatmos-preferred-subfunction-size=0 -mpatmos-stack-base=$(STACK_BASE) \
|
||||
-mpatmos-shadow-stack-base=$(SHADOW_STACK_BASE) -Xgold -n -Xgold -entry=hard_reset
|
||||
|
||||
Reference in New Issue
Block a user