Commit 06201106 authored by Stefan Lankes's avatar Stefan Lankes
Browse files

move dummy context switch functions to src/arch/aarch64/kernel/switch.rs

parent 315be41d
......@@ -14,6 +14,7 @@ pub mod scheduler;
pub mod serial;
mod start;
pub mod stubs;
pub mod switch;
pub mod systemtime;
use crate::arch::aarch64::kernel::percore::*;
......
......@@ -49,9 +49,3 @@ pub extern "C" fn makecontext() {}
#[no_mangle]
pub extern "C" fn setcontext() {}
#[no_mangle]
pub extern "C" fn switch_to_fpu_owner(_old_stack: *mut usize, _new_stack: usize) {}
#[no_mangle]
pub extern "C" fn switch_to_task(_old_stack: *mut usize, _new_stack: usize) {}
#[no_mangle]
pub extern "C" fn switch_to_fpu_owner(_old_stack: *mut usize, _new_stack: usize) {}
#[no_mangle]
pub extern "C" fn switch_to_task(_old_stack: *mut usize, _new_stack: usize) {}
\ No newline at end of file
......@@ -19,7 +19,7 @@ pub use crate::arch::aarch64::*;
#[cfg(target_arch = "aarch64")]
pub use crate::arch::aarch64::kernel::stubs::{
set_oneshot_timer, switch_to_fpu_owner, switch_to_task, wakeup_core,
set_oneshot_timer, wakeup_core,
};
#[cfg(target_arch = "aarch64")]
......@@ -46,6 +46,9 @@ pub use crate::arch::aarch64::kernel::irq;
#[cfg(target_arch = "aarch64")]
pub use crate::arch::aarch64::kernel::systemtime::get_boot_time;
#[cfg(target_arch = "aarch64")]
pub use crate::arch::aarch64::kernel::switch;
#[cfg(target_arch = "x86_64")]
pub use crate::arch::x86_64::*;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment