From 4e1888bd245b213c48e0acd75563b85ef620a021 Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Mon, 12 Jun 2023 19:20:42 -0700 Subject: [PATCH] Set eflags properly for jump to userspace --- zion/scheduler/jump_user_space.s | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zion/scheduler/jump_user_space.s b/zion/scheduler/jump_user_space.s index 0e50df2..b2b22a7 100644 --- a/zion/scheduler/jump_user_space.s +++ b/zion/scheduler/jump_user_space.s @@ -10,7 +10,7 @@ jump_user_space: pushq $0x23 # ss pushq %rsi - pushf # Can we just push 0 for flags? + pushq $0x202 # Bit 9 enables interrupts. pushq $0x1B # cs pushq %rdi mov %rdx, %rdi