🐛 创建页表时未清零内存空间

This commit is contained in:
fslongjin
2022-04-14 19:26:46 +08:00
parent 53c553c730
commit c2d8e88617
7 changed files with 29 additions and 18 deletions

View File

@ -50,7 +50,7 @@ void sched_cfs_enqueue(struct process_control_block *pcb)
*/
void sched_cfs()
{
current_pcb->flags &= ~PROC_NEED_SCHED;
struct process_control_block *proc = sched_cfs_dequeue();
@ -107,6 +107,8 @@ void sched_cfs()
*/
void sched_update_jiffies()
{
if(current_pcb->cpu_id == 0)
return;
switch (current_pcb->priority)
{
case 0: