增加mem fault的错误处理流程[默认杀死当前task]
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user