修复STM32工程在linux上编译失败的问题

This commit is contained in:
zhangzheng
2024-02-28 19:03:47 +08:00
parent a7abe122ab
commit 07eaa699f6
18 changed files with 55 additions and 27 deletions

View File

@@ -10,7 +10,11 @@
#include <assert.h>
static pthread_spinlock_t lock;
extern void *app_start_addr;
#ifdef CONFIG_EX_RAM_SIZE
static umword_t mm_bitemp[ROUND(CONFIG_EX_RAM_SIZE, MK_PAGE_SIZE) / (sizeof(umword_t) * 8) + 1];
#else
static umword_t mm_bitemp[ROUND(CONFIG_KNL_DATA_SIZE, MK_PAGE_SIZE) / (sizeof(umword_t) * 8) + 1];
#endif
static void *mm_page_alloc(int page_nr)
{
int cnt = 0;

View File

@@ -39,8 +39,8 @@ add_executable(tcc.elf
target_link_libraries(tcc.elf
PUBLIC
muslc
--whole-archive
start
--whole-archive
sys
sys_util
sys_svr