[NUC472] Reduce (interrupt) stack size from 12 KB to 4 KB

pull/3211/head
ccli8 2016-11-04 15:46:41 +08:00
parent 2922de8dff
commit c557842d68
4 changed files with 6 additions and 6 deletions

View File

@ -10,10 +10,10 @@ LR_IROM1 0x00000000 {
; uvisor-lib.a (+RW +ZI)
;}
ARM_LIB_STACK 0x20000000 EMPTY 0x3000 {
ARM_LIB_STACK 0x20000000 EMPTY 0x1000 {
}
ER_IRAMVEC 0x20003000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
ER_IRAMVEC 0x20001000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
}
RW_IRAM1 AlignExpr(+0, 16) { ; 16 byte-aligned

View File

@ -10,10 +10,10 @@ LR_IROM1 0x00000000 {
; uvisor-lib.a (+RW +ZI)
;}
ARM_LIB_STACK 0x20000000 EMPTY 0x3000 {
ARM_LIB_STACK 0x20000000 EMPTY 0x1000 {
}
ER_IRAMVEC 0x20003000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
ER_IRAMVEC 0x20001000 EMPTY (4*(16 + 142)) { ; Reserve for vectors
}
RW_IRAM1 AlignExpr(+0, 16) { ; 16 byte-aligned

View File

@ -2,7 +2,7 @@
* Nuvoton NUC472 GCC linker script file
*/
StackSize = 0x3000;
StackSize = 0x1000;
MEMORY
{

View File

@ -11,7 +11,7 @@ define symbol __ICFEDIT_region_IRAM_end__ = 0x20010000;
define symbol __ICFEDIT_region_XRAM_start__ = 0x60000000;
define symbol __ICFEDIT_region_XRAM_end__ = 0x60100000;
/*-Sizes-*/
define symbol __ICFEDIT_size_cstack__ = 0x2000;
define symbol __ICFEDIT_size_cstack__ = 0x1000;
define symbol __ICFEDIT_size_heap__ = 0xC0000;
/**** End of ICF editor section. ###ICF###*/