Use config.toml instead of x86_* Cargo feature.

This commit is contained in:
4lDO2
2023-09-12 21:18:56 +02:00
parent c210e59a75
commit f028b77412
7 changed files with 14 additions and 20 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ pub unsafe fn switch_to(prev: &mut super::Context, next: &mut super::Context) {
// This is so much shorter in Rust!
if cfg!(feature = "x86_fsgsbase") {
if cfg!(cpu_feature_always = "fsgsbase") {
prev.arch.fsbase = rdfsbase() as usize;
wrfsbase(next.arch.fsbase as u64);
swapgs();