parent
b1a3695dfb
commit
9001ac1f3d
@ -0,0 +1,14 @@
|
||||
use process::PROCESSOR;
|
||||
|
||||
|
||||
pub fn timer() {
|
||||
let mut processor = PROCESSOR.try().unwrap().lock();
|
||||
processor.tick();
|
||||
}
|
||||
|
||||
pub fn before_return() {
|
||||
use process::PROCESSOR;
|
||||
if let Some(processor) = PROCESSOR.try() {
|
||||
processor.lock().schedule();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue