use crate::process::Task;
use alloc::sync::Arc;
use libkernel::memory::proc_vm::address_space::UserAddressSpace;

pub mod idle;
pub mod signal;
pub mod vdso;

pub fn context_switch(new: Arc<Task>) {
    new.vm
        .lock_save_irq()
        .mm_mut()
        .address_space_mut()
        .activate();
}
