Kernel: Fix sse state saving
This was broken when I added SMP support. This patch makes sse kind of dumb as it is saved and restored on every interrupt, but now it at least works properly... I'll have to look into how sse can get optimized nicely with SMP. Simple way would be pinning each thread to a specific processor and doing pretty much what I had before, but sse thread saved in processor rather than static global.
This commit is contained in:
14
.vscode/c_cpp_properties.json
vendored
14
.vscode/c_cpp_properties.json
vendored
@@ -8,8 +8,9 @@
|
||||
"${workspaceFolder}/userspace/libraries/*/include"
|
||||
],
|
||||
"defines": [
|
||||
"__arch=x86_64"
|
||||
],
|
||||
"__arch=x86_64",
|
||||
"__enable_sse=1"
|
||||
],
|
||||
"compilerPath": "${workspaceFolder}/toolchain/local/bin/x86_64-banan_os-gcc",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "gnu++20",
|
||||
@@ -23,9 +24,10 @@
|
||||
"${workspaceFolder}/userspace/libraries/*/include"
|
||||
],
|
||||
"defines": [
|
||||
"__arch=x86_64",
|
||||
"__is_kernel"
|
||||
],
|
||||
"__arch=x86_64",
|
||||
"__is_kernel",
|
||||
"__enable_sse=1"
|
||||
],
|
||||
"compilerPath": "${workspaceFolder}/toolchain/local/bin/x86_64-banan_os-gcc",
|
||||
"cStandard": "c17",
|
||||
"cppStandard": "gnu++20",
|
||||
@@ -33,4 +35,4 @@
|
||||
}
|
||||
],
|
||||
"version": 4
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user