diff --git a/arch/x86_64/src/intel64/intel64_head.S b/arch/x86_64/src/intel64/intel64_head.S index f10fe93f1a5..060d3d184f3 100644 --- a/arch/x86_64/src/intel64/intel64_head.S +++ b/arch/x86_64/src/intel64/intel64_head.S @@ -696,6 +696,10 @@ no_kstack_switch: syscall_no_ring3: # endif + /* Restore the value of RFLAGS from R11 */ + pushq %r11 + popfq + /* Return to address pointed in RCX - must be on stack */ pushq %rcx ret