Skip to content
Snippets Groups Projects
Commit 31680bf5 authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Do not set tpidr_el0 from kernel

parent b3b5bb8a
No related branches found
No related tags found
No related merge requests found
...@@ -103,10 +103,6 @@ impl Context { ...@@ -103,10 +103,6 @@ impl Context {
self.lr = address; self.lr = address;
} }
pub fn set_tcb(&mut self, pid: usize) {
self.tpidr_el0 = (crate::USER_TCB_OFFSET + pid * crate::PAGE_SIZE);
}
pub fn set_fp(&mut self, address: usize) { pub fn set_fp(&mut self, address: usize) {
self.fp = address; self.fp = address;
} }
......
...@@ -170,11 +170,6 @@ pub unsafe fn switch() -> bool { ...@@ -170,11 +170,6 @@ pub unsafe fn switch() -> bool {
gdt::set_tss_stack(stack.as_ptr() as usize + stack.len()); gdt::set_tss_stack(stack.as_ptr() as usize + stack.len());
} }
} }
#[cfg(target_arch = "aarch64")]
{
let pid = to_context.id.into();
to_context.arch.set_tcb(pid);
}
CONTEXT_ID.store(to_context.id, Ordering::SeqCst); CONTEXT_ID.store(to_context.id, Ordering::SeqCst);
if let Some(sig) = to_sig { if let Some(sig) = to_sig {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment