OneMore14
OneMore14
in TableGenerator::GenerateTestTables(), colC in table "test_7" is indeed between 0 and 9.
> I got the same problem today, The output is excatly from 1 to 99. So are we wrong about what we think, or indeed it's an issue? Hope your...
idle_task_cx 难懂的原因是,Processor::new() 初始化时它被设置为全0,但整个项目又似乎找不到修改它的代码!难道idle_task_cx一直都是0吗? idle_task_cx一开始确实是全0,当内核启动从rust_main()进入run_tasks()后,在loop第一句PROCESSOR.exclusive_access()访问PROCESSOR前,PROCESSOR被初始化,这个时候idle_task_cx是全0,然后拿到idle_task_cx的**指针**,注意是指针,最后在```__switch(idle_task_cx_ptr, next_task_cx_ptr)```的调用中带着idle_task_cx的指针进入__switch函数,__switch函数就将当前的上下文通过idle_task_cx指针存到了PROCESSOR当中,这个时候idle_task_cx就从全0变成了run_tasks()里loop的上下文