Skip to content

Commit

Permalink
Disable interrupts before return to user during userinit.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbittman committed Jul 30, 2024
1 parent e31304a commit fd25280
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/kernel/src/arch/amd64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ pub unsafe fn jump_to_user(
) {
use crate::syscall::SyscallContext;
let ctx = syscall::X86SyscallContext::create_jmp_context(target, stack, arg);
crate::interrupt::set(false);
crate::thread::exit_kernel();

{
Expand Down

0 comments on commit fd25280

Please sign in to comment.