[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user