Skip to content

Resolve Realtek device small code space issue #4487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,8 @@ SECTIONS

.TCM_overlay :
{
*lwip_mem.o (.bss*)
*lwip_memp.o (.bss*)
*(.tcm.heap*)
} > TCM

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down