Skip to content

Commit

Permalink
added IPA switch while switching context.
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvraj1803 committed Nov 10, 2023
1 parent 75c2dd9 commit b3f41cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,5 +99,6 @@ void schedule(){

debug("Context switch: %s --> %s\n", prev->name, current->name);

load_vttbr_el2(current->vmid, (uint64_t)current->virtual_address_space->lv1_table);
switch_context(&prev->cpu.context, &current->cpu.context);
}

0 comments on commit b3f41cb

Please sign in to comment.