Browse Source

[lwip]Improve lwip support for 64-bit architecture

guozhanxin 3 years ago
parent
commit
1aa96f34cd
1 changed files with 3 additions and 0 deletions
  1. 3 0
      components/net/Kconfig

+ 3 - 0
components/net/Kconfig

@@ -138,6 +138,7 @@ config RT_USING_LWIP
 
         config RT_LWIP_MEM_ALIGNMENT
             int "Memory alignment"
+            default 8 if ARCH_CPU_64BIT
             default 4
 
         config RT_LWIP_IGMP
@@ -258,6 +259,7 @@ config RT_USING_LWIP
 
         config RT_LWIP_TCPTHREAD_STACKSIZE
             int "the stack size of lwIP thread"
+            default 2048 if ARCH_CPU_64BIT
             default 1024
 
         config LWIP_NO_RX_THREAD
@@ -274,6 +276,7 @@ config RT_USING_LWIP
 
         config RT_LWIP_ETHTHREAD_STACKSIZE
             int "the stack size of ethernet thread"
+            default 2048 if ARCH_CPU_64BIT
             default 1024
 
         config RT_LWIP_ETHTHREAD_MBOX_SIZE