增加mem fault的错误处理流程[默认杀死当前task]

This commit is contained in:
zhangzheng
2023-09-29 12:57:40 +08:00
parent 3b5a7b14b3
commit 224ca9f33c
5 changed files with 39 additions and 32 deletions

View File

@@ -22,7 +22,6 @@ int main(int argc, char *args[])
{
// futex_init();
ulog_write_str(LOG_PROT, "init..\n");
// mpu_test();
#if 0
ulog_test();
factory_test();
@@ -33,6 +32,7 @@ int main(int argc, char *args[])
ipc_timeout_test();
mm_test();
app_test();
mpu_test();
#endif
ipc_test();
uenv_t env = *u_get_global_env();

View File

@@ -15,5 +15,5 @@ void factory_test(void)
printf("factory_create_ipc no memory\n");
return;
}
task_unmap(TASK_PROT, vpage_create_raw3(KOBJ_DELETE_RIGHT, 0, hd));
handler_free_umap(hd);
}