pudding_kernel/context/
dummy.rs

1#[repr(C)]
2pub struct Context {
3    pub sp: usize,
4}
5
6impl Context {
7    pub const fn new() -> Self {
8        Context { sp: 0 }
9    }
10
11    pub(crate) unsafe fn _create(
12        &mut self,
13        _stack: &mut [u8],
14        _entry: extern "C" fn(isize),
15        _exinf: isize,
16    ) {
17    }
18    pub(crate) unsafe fn _start(&mut self) {}
19    pub(crate) unsafe fn _switch(&mut self, _current: &mut Context) {}
20}