mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4487 from Archcady/Realtek_TCM
Resolve Realtek device small code space issuepull/4521/merge
commit
f31ea01237
|
@ -37,6 +37,12 @@ LR_RAM 0x10006000 0x6FFFF {
|
|||
RW_IRAM1 +0 UNINIT FIXED {
|
||||
.ANY (+ZI)
|
||||
}
|
||||
|
||||
TCM_OVERLAY 0x1FFF0000 0x10000{
|
||||
lwip_mem.o(.bss*)
|
||||
lwip_memp.o(.bss*)
|
||||
*.o(.tcm.heap*)
|
||||
}
|
||||
}
|
||||
|
||||
LR_DRAM 0x30000000 0x1FFFFF{
|
||||
|
|
|
@ -827,6 +827,8 @@ SECTIONS
|
|||
|
||||
.TCM_overlay :
|
||||
{
|
||||
*lwip_mem.o (.bss*)
|
||||
*lwip_memp.o (.bss*)
|
||||
*(.tcm.heap*)
|
||||
} > TCM
|
||||
|
||||
|
|
|
@ -208,7 +208,7 @@ place at start of SDRAM_RAM_region {
|
|||
|
||||
/* TCM placement */
|
||||
define overlay TCM_overlay {
|
||||
section .tcm.heap,
|
||||
section .tcm.heap,
|
||||
section .bss object lwip_mem.o,
|
||||
section .bss object lwip_memp.o,
|
||||
block .heap,
|
||||
|
|
|
@ -107,7 +107,7 @@
|
|||
|
||||
#if defined(CONFIG_PLATFORM_AMEBA_X)
|
||||
#if !defined(CONFIG_PLATFORM_8711B)
|
||||
#define CONFIG_USE_TCM_HEAP 0 /* USE TCM HEAP */
|
||||
#define CONFIG_USE_TCM_HEAP 1 /* USE TCM HEAP */
|
||||
#endif
|
||||
#define CONFIG_RECV_TASKLET_THREAD
|
||||
#define CONFIG_XMIT_TASKLET_THREAD
|
||||
|
|
|
@ -32,7 +32,7 @@ extern "C" {
|
|||
|
||||
#if defined(CONFIG_PLATFORM_8195A)
|
||||
#ifndef CONFIG_USE_TCM_HEAP
|
||||
#define CONFIG_USE_TCM_HEAP 0 /* USE TCM HEAP */
|
||||
#define CONFIG_USE_TCM_HEAP 1 /* USE TCM HEAP */
|
||||
#endif
|
||||
#define USE_MUTEX_FOR_SPINLOCK 1
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue