优化多arch支持
This commit is contained in:
@@ -42,8 +42,11 @@ long be_set_thread_area(void *p)
|
||||
ipc_msg_t *i_msg;
|
||||
|
||||
thread_msg_buf_get(-1, &msg, &len);
|
||||
|
||||
i_msg = (ipc_msg_t *)msg;
|
||||
if (!i_msg)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
i_msg->user[0] = (umword_t)p;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -28,12 +28,12 @@ elseif(${CONFIG_ARCH} STREQUAL "aarch64" )
|
||||
${CMAKE_SOURCE_DIR}/build/libc/output/lib/crtn.o
|
||||
)
|
||||
|
||||
add_subdirectory(uvmm)
|
||||
# add_subdirectory(uvmm)
|
||||
# add_subdirectory(test)
|
||||
endif()
|
||||
add_subdirectory(init)
|
||||
add_subdirectory(shell)
|
||||
# add_subdirectory(tinycc-arm-thumb)
|
||||
add_subdirectory(tinycc-arm-thumb)
|
||||
add_subdirectory(fs)
|
||||
# add_subdirectory(drv)
|
||||
# add_subdirectory(net)
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
#一次读取一行,每行代表启动的应用程序,暂时不支持参数
|
||||
|
||||
cpiofs -m /bin
|
||||
# fatfs
|
||||
# dm9000_drv
|
||||
# net
|
||||
# lcd_drv
|
||||
# fatfs.elf
|
||||
# hello.elf
|
||||
cpiofs -m /bin
|
||||
sh
|
||||
@@ -210,10 +210,10 @@ int pm_rpc_run_app(const char *path, int flags)
|
||||
int ret;
|
||||
printf("pm run %s.\n", path);
|
||||
char *args[] = {
|
||||
"xx",/*TODO:*修正参数传递*/
|
||||
"-t",
|
||||
(char *)path,
|
||||
NULL, /*TODO:支持传递参数*/
|
||||
};
|
||||
ret = app_load(path, u_get_global_env(), &pid, args, 2, NULL, 0);
|
||||
ret = app_load(path, u_get_global_env(), &pid, args, 1, NULL, 0);
|
||||
if (ret > 0)
|
||||
{
|
||||
if (!(flags & PM_APP_BG_RUN))
|
||||
|
||||
Reference in New Issue
Block a user