cpu: adjusted IRQ stack sizes for Cortex CPUs
This commit is contained in:
parent
4ef5a97e9a
commit
72b68bc9f0
@ -31,8 +31,10 @@ OUTPUT_FORMAT("elf32-littlearm", "elf32-littlearm", "elf32-littlearm")
|
|||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
SEARCH_DIR(.)
|
SEARCH_DIR(.)
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 2K ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -40,8 +40,10 @@ MEMORY
|
|||||||
ram (rwx) : ORIGIN = 0x20070000, LENGTH = 0x00018000 /* sram, 96K */
|
ram (rwx) : ORIGIN = 0x20070000, LENGTH = 0x00018000 /* sram, 96K */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -38,8 +38,10 @@ MEMORY
|
|||||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 /* RAM, 32K */
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00008000 /* RAM, 32K */
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -38,8 +38,10 @@ MEMORY
|
|||||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K
|
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 8K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0xa00 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -38,8 +38,10 @@ MEMORY
|
|||||||
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 20K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -38,8 +38,10 @@ MEMORY
|
|||||||
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
|
ram (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -39,8 +39,10 @@ MEMORY
|
|||||||
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 8K
|
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 8K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0xa00; /* 2.5K */
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
|
|||||||
@ -39,8 +39,10 @@ MEMORY
|
|||||||
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K
|
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
|
|||||||
@ -39,8 +39,10 @@ MEMORY
|
|||||||
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K
|
ccmram (rwx): ORIGIN = 0x10000000, LENGTH = 64K
|
||||||
}
|
}
|
||||||
|
|
||||||
/* The stack size used by the application. NOTE: you need to adjust */
|
/* Define the default stack size for interrupt mode. As no context is
|
||||||
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x2000 ;
|
saved on this stack and ISRs are supposed to be short, it can be fairly
|
||||||
|
small. 512 byte should be a save assumption here */
|
||||||
|
STACK_SIZE = DEFINED(STACK_SIZE) ? STACK_SIZE : 0x200; /* 512 byte */
|
||||||
|
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user