mirror of https://github.com/ARMmbed/mbed-os.git
[LPC4088] Making it possible to reserve stack space by weak function.
parent
a1a2fec259
commit
3157d5afb2
|
@ -11,6 +11,7 @@ extern "C" {
|
|||
|
||||
#include <rt_misc.h>
|
||||
#include <stdint.h>
|
||||
#include "sys_helper.h"
|
||||
|
||||
extern char Image$$RW_IRAM1$$ZI$$Limit[];
|
||||
|
||||
|
@ -22,7 +23,7 @@ extern __value_in_regs struct __initial_stackheap __user_setup_stackheap(uint32_
|
|||
|
||||
struct __initial_stackheap r;
|
||||
r.heap_base = zi_limit;
|
||||
r.heap_limit = sp_limit;
|
||||
r.heap_limit = sp_limit - __reserved_stack_size();
|
||||
return r;
|
||||
}
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
</DaveTm>
|
||||
|
||||
<Target>
|
||||
<TargetName>mbed NXP LPC1768</TargetName>
|
||||
<TargetName>mbed NXP LPC4088</TargetName>
|
||||
<ToolsetNumber>0x4</ToolsetNumber>
|
||||
<ToolsetName>ARM-ADS</ToolsetName>
|
||||
<TargetOption>
|
||||
|
|
Loading…
Reference in New Issue