()
| 56 | } |
| 57 | |
| 58 | pub const fn kstack() -> Self { |
| 59 | Self { |
| 60 | range: Page::range(KSTACK_INIT_PAGE, KSTACK_INIT_TOP_PAGE), |
| 61 | usage: KSTACK_DEF_PAGE, |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | pub fn init(&mut self, mapper: MapperRef, alloc: FrameAllocatorRef) { |
| 66 | debug_assert!(self.usage == 0, "Stack is not empty."); |
nothing calls this directly
no outgoing calls
no test coverage detected