[kernel] Save ring3 rflags in cpu_data, not just stack

So that kernel code can modify user rflags, save it in the CPU state
data, and save that off to the TCB when switching tasks.
This commit is contained in:
Justin C. Miller
2021-12-23 16:46:47 -08:00
parent c23a1bfabb
commit f250a33e9b
5 changed files with 14 additions and 2 deletions

View File

@@ -28,6 +28,7 @@ struct cpu_data
uint32_t reserved;
uintptr_t rsp0;
uintptr_t rsp3;
uint64_t rflags3;
TCB *tcb;
thread *thread;
process *process;