[kernel] Initial XSAVE support implementation

Initial support for XSAVE, but not XSAVEOPT or XSAVEC:

- Enable XSAVE and set up xcr0 for all CPUs
- Allocate XSAVE area for all non-kernel threads
- Call XSAVE and XRSTOR on task switch
This commit is contained in:
Justin C. Miller
2023-05-05 12:04:37 -06:00
parent 3b3857548c
commit b5662bfd25
12 changed files with 135 additions and 9 deletions

View File

@@ -65,6 +65,7 @@ kernel = module("kernel",
"tss.cpp",
"vm_space.cpp",
"wait_queue.cpp",
"xsave.cpp",
])
if config == "debug":