Support fsgsbase at compile time.

This commit is contained in:
4lDO2
2021-06-22 17:21:03 +02:00
parent 9c3cf84453
commit 0968e4f87e
10 changed files with 233 additions and 58 deletions
-1
View File
@@ -173,7 +173,6 @@ pub unsafe fn switch() -> bool {
if let Some(ref stack) = to_context.kstack {
gdt::set_tss_stack(stack.as_ptr() as usize + stack.len());
}
gdt::set_tcb(to_context.id.into());
}
#[cfg(target_arch = "aarch64")]
{