Set relocation-model=static

This commit is contained in:
4lDO2
2023-08-12 00:57:45 +00:00
committed by Jeremy Soller
parent 652aa4f1ac
commit cbd02a8489
4 changed files with 32 additions and 30 deletions
+1 -2
View File
@@ -8,7 +8,6 @@ use spin::{RwLock, RwLockWriteGuard};
use crate::context::signal::signal_handler;
use crate::context::{arch, contexts, Context};
use crate::gdt;
use crate::interrupt;
use crate::percpu::PercpuBlock;
use crate::ptrace;
@@ -187,7 +186,7 @@ pub unsafe fn switch() -> bool {
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
{
if let Some(ref stack) = next_context.kstack {
gdt::set_tss_stack(stack.as_ptr() as usize + stack.len());
crate::gdt::set_tss_stack(stack.as_ptr() as usize + stack.len());
}
}
let percpu = PercpuBlock::current();