Merge pull request #4487 from Archcady/Realtek_TCM

Resolve Realtek device small code space issue
pull/4521/merge
Sam Grove 2017-06-11 01:09:51 -05:00 committed by GitHub
commit f31ea01237
5 changed files with 11 additions and 3 deletions

View File

@ -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{

View File

@ -827,6 +827,8 @@ SECTIONS
.TCM_overlay :
{
*lwip_mem.o (.bss*)
*lwip_memp.o (.bss*)
*(.tcm.heap*)
} > TCM

View File

@ -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,

View File

@ -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

View File

@ -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