mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 16:26:31 +00:00
new: 增加ktest_start函数以开启内核自测试
This commit is contained in:
@ -416,8 +416,8 @@ ul initial_kernel_thread(ul arg)
|
||||
usb_init();
|
||||
|
||||
// 对一些组件进行单元测试
|
||||
kernel_thread(ktest_test_bitree, 0, 0);
|
||||
kernel_thread(ktest_test_kfifo, 0, 0);
|
||||
ktest_start(ktest_test_bitree, 0);
|
||||
ktest_start(ktest_test_kfifo, 0);
|
||||
|
||||
// 准备切换到用户态
|
||||
struct pt_regs *regs;
|
||||
|
@ -115,7 +115,7 @@ struct process_control_block
|
||||
// 进程切换时保存的状态信息
|
||||
struct thread_struct *thread;
|
||||
|
||||
// 连接各个pcb的双向链表(todo:删除这个变量)
|
||||
// 连接各个pcb的双向链表
|
||||
struct List list;
|
||||
|
||||
// 地址空间范围
|
||||
|
Reference in New Issue
Block a user