[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

@@ -2,6 +2,7 @@ struc TCB
.rsp: resq 1
.rsp0: resq 1
.rsp3: resq 1
.rflags3: resq 1
.pml4: resq 1
endstruc
@@ -12,6 +13,7 @@ struc CPU_DATA
.reserved resd 1
.rsp0: resq 1
.rsp3: resq 1
.rflags3: resq 1
.tcb: resq 1
.thread: resq 1
.process: resq 1