[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

@@ -15,6 +15,7 @@ struct TCB
uintptr_t rsp;
uintptr_t rsp0;
uintptr_t rsp3;
uintptr_t rflags3;
uintptr_t pml4;
uint8_t priority;