更新u_malloc分配器

This commit is contained in:
zhangzheng
2025-03-09 23:53:18 +08:00
parent 66b79ce2ea
commit 79d4d1cad3
25 changed files with 677 additions and 1090 deletions

View File

@@ -1,6 +1,6 @@
#define HEAP_SIZE (512)
#define STACK_SIZE (1024 * 2)
#define STACK_SIZE (1024 * 3)
#if defined(__CC_ARM)
#define HEAP_ATTR SECTION("HEAP") __attribute__((zero_init))

View File

@@ -21,7 +21,6 @@
#include <poll.h>
#include <sys/types.h>
#include <u_malloc.h>
#define BB_VER "latest: 2021-04-07"
#define BB_BT "busybox vi"

View File

@@ -102,6 +102,6 @@ int main(int argc, char *argv[])
meta_reg_svr_obj(&net_drv.svr, BLK_DRV_PROT);
while (1)
{
u_sleep_ms(0);
u_sleep_ms(U_SLEEP_ALWAYS);
}
}

View File

@@ -49,6 +49,6 @@ int main(int argc, char *argv[])
ns_register("/i2c2", hd, 0);
while (1)
{
u_sleep_ms(0);
u_sleep_ms(U_SLEEP_ALWAYS);
}
}

View File

@@ -49,6 +49,6 @@ int main(int argc, char *argv[])
ns_register("/pca9555", hd, 0);
while (1)
{
u_sleep_ms(0);
u_sleep_ms(U_SLEEP_ALWAYS);
}
}

View File

@@ -93,6 +93,6 @@ int main(int argc, char *argv[])
meta_reg_svr_obj(&snd_drv.svr, BLK_DRV_PROT);
while (1)
{
u_sleep_ms(0);
u_sleep_ms(U_SLEEP_ALWAYS);
}
}

View File

@@ -128,6 +128,6 @@ int main(int argc, char *argv[])
while (1)
{
// rpc_loop();
u_sleep_ms((umword_t)(-1));
u_sleep_ms(U_SLEEP_ALWAYS);
}
}

View File

@@ -159,6 +159,6 @@ int main(int argc, char *argv[])
while (1)
{
u_sleep_ms(0);
u_sleep_ms(U_SLEEP_ALWAYS);
}
}