支持解析脚步中的应用并自动执行
This commit is contained in:
zhangzheng
2023-11-27 22:25:21 +08:00
parent 5fc71a7f98
commit 3a10b63e5f
14 changed files with 128 additions and 138 deletions

View File

@@ -499,8 +499,10 @@ static void futex_unmap(obj_space_t *obj_space, kobject_t *kobj)
}
static void futex_release_stage1(kobject_t *kobj)
{
/*TODO:删除task所占用的futex资源*/
/*删除的任务可能不是当前任务*/
}
static bool_t futex_release_put(kobject_t *kobj)
{
return FALSE;
}
static void futex_release_stage2(kobject_t *kobj)
{
@@ -517,4 +519,5 @@ static void futex_init(futex_t *ft)
ft->kobj.unmap_func = futex_unmap;
ft->kobj.stage_1_func = futex_release_stage1;
ft->kobj.stage_2_func = futex_release_stage2;
ft->kobj.put_func = futex_release_put;
}

View File

@@ -26,7 +26,6 @@ static void print_raw(const char *str)
{
for (int i = 0; str[i]; i++)
{
// xputc(str[i]);
uart_putc(uart_get_global(), str[i]);
}
}
@@ -37,7 +36,6 @@ static void print_raw(const char *str)
*/
void putc(int c)
{
// xputc(c);
uart_putc(uart_get_global(), c);
}
int getc(void)